Example #1
0
 public CodeGenStackDomainServices(GenieBase genie)
     : base(genie)
 {
     outFileName = "DomainServices.cs";
     genie.Config.Macro.SetMacro("%ClassName_DomainQueryFactory%", ClassName_DomainQueryFactory);
     genie.Config.Macro.SetMacro("%ClassFullName_DomainQueryParams%", DomainLayerConfig.GetClassName_QueryParams(true));
 }
 /// <summary>
 /// Generates domain infrastructure classes, interfaces and helpers.
 /// </summary>
 /// <param name='genie'>
 /// NHibernate genie.
 /// </param>
 public CodeGenDomainSupport(NHibernateGenie genie)
     : base(genie)
 {
     outFileName = "DomainSupport.cs";
     genie.Config.Macro.SetMacro("%InterfaceName_PersistentObject%", InterfaceName_PersistentObject);
     genie.Config.Macro.SetMacro("%ClassName_CommonEntityInterceptor%", ClassName_CommonEntityInterceptor);
     // Quering
     genie.Config.Macro.SetMacro("%ClassName_QueryFactory%", ClassName_QueryFactory);
     genie.Config.Macro.SetMacro("%ClassName_DomainQueryParams%", DomainLayerConfig.GetClassName_QueryParams(false));
     genie.Config.Macro.SetMacro("%ClassName_SortOrder%", DomainLayerConfig.GetClassName_SortOrder(false));
     // Events
     genie.Config.Macro.SetMacro("%InterfaceName_OnSave%", InterfaceName_OnSave);
     genie.Config.Macro.SetMacro("%InterfaceName_OnDelete%", InterfaceName_OnDelete);
     genie.Config.Macro.SetMacro("%InterfaceName_OnFlush%", InterfaceName_OnFlush);
     genie.Config.Macro.SetMacro("%ClassName_EventHandlerBase%", ClassName_EventHandlerBase);
     genie.Config.Macro.SetMacro("%ClassName_DomainEventHandler%", ClassName_DomainEventHandler);
     // Patterns
     genie.Config.Macro.SetMacro("%ClassName_EntityAuditor%", ClassName_EntityAuditor);
     genie.Config.Macro.SetMacro("%InterfaceName_UsesRegistry%", InterfaceName_UsesRegistry);
     genie.Config.Macro.SetMacro("%IUsesRegistry_Property_Registry%", IUsesRegistry_Property_Registry);
     genie.Config.Macro.SetMacro("%InterfaceName_UsesAudit%", InterfaceName_UsesAudit);
 }