Esempio n. 1
0
 protected override void Configure(Cfg.Configuration configuration)
 {
     configuration.DataBaseIntegration(x =>
     {
         x.BatchSize = 0;
         x.Batcher <NonBatchingBatcherFactory>();
     });
 }
Esempio n. 2
0
        public static Cfg.Configuration For <T>() where T : class
        {
            var nhConf = new Cfg.Configuration();

            nhConf.DataBaseIntegration(db => db.Dialect <MsSql2005Dialect>());

            var bahs = new ModelMapper();

            bahs.Class <T>(c => c.Id("Id", idMapper => idMapper.Generator(Generators.Assigned)));
            nhConf.AddMapping(bahs.CompileMappingForAllExplicitlyAddedEntities());

            return(nhConf);
        }
 protected override void Configure(Cfg.Configuration configuration)
 {
     configuration.DataBaseIntegration(x => x.LogFormattedSql = false);
 }
Esempio n. 4
0
 protected override void Configure(Cfg.Configuration configuration)
 {
     configuration.DataBaseIntegration(di => di.KeywordsAutoImport = Hbm2DDLKeyWords.AutoQuote);
 }