public ISessionFactory CreateFactoryWeb(string connectionString)
        {
            var config = new NHibernateConfig(connectionString);

            config.ConfigureCurrentSessionContextClass(CurrentSessionContextClassOption.web);
            config.UpdateSchema();
            return(config.BuildSessionFactory());
        }
        public ISessionFactory CreateFactoryUnitTest(string connectionString)
        {
            var config = new NHibernateConfig(connectionString);

            config.ConfigureCurrentSessionContextClass(CurrentSessionContextClassOption.thread_static);

            return(config.BuildSessionFactory());
        }