public void FixtureSetup() { BasicConfigurator.Configure(); SetupSolr(); cfg = SetupNHibernate(); cfgHelper = new CfgHelper(); cfgHelper.Configure(cfg, true); sessionFactory = cfg.BuildSessionFactory(); }
public static Configuration GetEmptyNHConfig() { var nhConfig = new Configuration { Properties = new Dictionary<string, string> { {Environment.ConnectionProvider, typeof(DriverConnectionProvider).FullName}, {Environment.ConnectionDriver, typeof(SQLite20Driver).FullName}, {Environment.Dialect, typeof(SQLiteDialect).FullName}, {Environment.ConnectionString, "Data Source=test.db;Version=3;New=True;"}, } }; return nhConfig; }
public static Configuration GetEmptyNHConfigForSqlExpress() { var nhConfig = new Configuration { Properties = new Dictionary<string, string> { {Environment.ConnectionProvider, typeof(DriverConnectionProvider).FullName}, {Environment.ConnectionDriver, typeof(SqlClientDriver).FullName}, {Environment.Dialect, typeof(MsSql2005Dialect).FullName}, {Environment.ConnectionString, @"Data Source=.\SQLExpress;Initial Catalog=SolrNet;Integrated Security=SSPI;"}, {Environment.ProxyFactoryFactoryClass, typeof(ProxyFactoryFactory).AssemblyQualifiedName}, } }; return nhConfig; }