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;"},
             {Environment.ProxyFactoryFactoryClass, typeof(ProxyFactoryFactory).AssemblyQualifiedName},
         }
     };
     return nhConfig;
 }
Esempio n. 2
0
 private Configuration SetupNHibernate() {
     var cfg = new Configuration();
     cfg.Configure();
     return cfg;
 }