private NHibernateLoader() { factory = config.Configure().BuildSessionFactory(); session = factory.OpenSession(); }
public ISessionFactory ConfigureSessionFactory() { Configuration config = new Configuration(); return(config.Configure().BuildSessionFactory()); }