Beispiel #1
0
 public void Setup()
 {
     NHibernateHelper.CreateDatabaseSchema();
     SessionFactory = NHibernateHelper.SessionFactory;
     Session        = NHibernateHelper.SessionFactory.OpenSession();
     CurrentSessionContext.Bind(Session);
 }
Beispiel #2
0
 private static void CreateDatabaseSchema()
 {
     NHibernateHelper.CreateDatabaseSchema();
     System.Console.WriteLine("Database schema created");
 }