Exemple #1
0
 private static NHIbernateContext CreateNewContext()
 {
     NHIbernateContext ctx = new NHIbernateContext();
     ctx.Configuration = GetConfiguration();
     ctx.SessionFactory = ctx.Configuration.BuildSessionFactory();
     return ctx;
 }
        private static NHIbernateContext CreateNewContext()
        {
            NHIbernateContext ctx = new NHIbernateContext();

            ctx.Configuration  = GetConfiguration();
            ctx.SessionFactory = ctx.Configuration.BuildSessionFactory();
            return(ctx);
        }