Name:  dsl_design_001.png
Views: 125
Size:  75.1 KB

Yeah - each of the entities in the diagram becomes an interface and partial class pair - the end goal being that the tool builds your CQRS framework and you can add in any custom functionality.

Since there is no functional difference between the styles I have added an option to choose which to use:
VB Code:
  1. ''' <summary>
  2.     ''' What type of constructor to use in the generated classes
  3.     ''' </summary>
  4.     ''' <remarks>
  5.     ''' This could be a per-model rather than per-user preference
  6.     ''' </remarks>
  7.     Public Enum ConstructorPreferenceSetting
  8.         ''' <summary>
  9.         ''' (Default) Generate both an interface derived constructor and a parameters derived constructor
  10.         ''' </summary>
  11.         GenerateBoth = 0
  12.         ''' <summary>
  13.         ''' Only generate an interface derived constructor
  14.         ''' </summary>
  15.         InterfaceOnly = 1
  16.         ''' <summary>
  17.         ''' Only derive a parameters derived cosntructor
  18.         ''' </summary>
  19.         ParametersOnly = 2
  20.     End Enum