我正在尝试设置 NHibernate.Envers 以使用单独的数据库、模式和表后缀。出于某种原因,我设置的配置更改被忽略。
示例代码
var nhCfg = new Configuration().Configure();
nhCfg.IntegrateWithEnvers(new AttributeConfiguration());
nhCfg.SetEnversProperty(ConfigurationKey.AuditTableSuffix, "_Log");
nhCfg.SetEnversProperty(ConfigurationKey.DefaultCatalog, "LoggingDatabase");
nhCfg.SetEnversProperty(ConfigurationKey.DefaultSchema, "log");
有没有人有什么建议?我不确定我是否遗漏了一些东西来提交配置更改。