Beispiel #1
0
        protected static ISessionFactory CreateSessionFactory()
        {
            ISessionFactory factory = CurrentConfiguration.BuildSessionFactory();

            if (factory == null)
            {
                string msg = "NHibernateCouldNotCreateFactoryException";
                throw new Exception(msg);
            }
            return(factory);
        }