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:
''' <summary> ''' What type of constructor to use in the generated classes ''' </summary> ''' <remarks> ''' This could be a per-model rather than per-user preference ''' </remarks> Public Enum ConstructorPreferenceSetting ''' <summary> ''' (Default) Generate both an interface derived constructor and a parameters derived constructor ''' </summary> GenerateBoth = 0 ''' <summary> ''' Only generate an interface derived constructor ''' </summary> InterfaceOnly = 1 ''' <summary> ''' Only derive a parameters derived cosntructor ''' </summary> ParametersOnly = 2 End Enum




Reply With Quote