private global::NHibernate.Cfg.Configuration CreateConfiguration() { var configuration = new global::NHibernate.Cfg.Configuration() .CurrentSessionContext <LazySessionContext>(); configuration.DataBaseIntegration(db => { db.ConnectionProvider <DriverConnectionProvider>(); db.Dialect <MsSql2005Dialect>(); db.Driver <SqlClientDriver>(); db.ConnectionStringName = "default"; db.BatchSize = 30; db.KeywordsAutoImport = Hbm2DDLKeyWords.AutoQuote; db.Timeout = 10; db.LogFormattedSql = true; db.LogSqlInConsole = false; db.HqlToSqlSubstitutions = "true 1, false 0, yes 'Y', no 'N'"; }); configuration.AddDeserializedMapping(EntitiesMapper.CreateMappingConfiguration(), "Cronos");; return(configuration); }