Beispiel #1
0
 public static void Init()
 {
     SessionFactory.Init(ConfigurationManager.ConnectionStrings["DDDInPractice"].ConnectionString);
     HeadOfficeInstance.Init(new HeadOfficeRepository());
     DomainEvents.Init();
 }
Beispiel #2
0
 public static void Init(string connectionString)
 {
     SessionFactory.Init(connectionString);
     HeadOfficeInstance.Init();
     DomainEvents.Init();
 }