protected override void Configure(Cfg.Configuration configuration) { configuration.DataBaseIntegration(x => { x.BatchSize = 0; x.Batcher <NonBatchingBatcherFactory>(); }); }
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); }
protected override void Configure(Cfg.Configuration configuration) { configuration.DataBaseIntegration(di => di.KeywordsAutoImport = Hbm2DDLKeyWords.AutoQuote); }