Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            var connectionString = ConfigurationManager.ConnectionStrings["NoteDB"].ConnectionString;

            var helper = new NHibernateHelper(connectionString);

            helper.CreateSchema();
        }
Ejemplo n.º 2
0
 static UnitOfWorkProvider()
 {
     var connectionString = ConfigurationManager.ConnectionStrings["NotesDB"].ConnectionString;
     var helper = new NHibernateHelper(connectionString);
     _sessionFactory = helper.SessionFactory;
 }