Don't you mean at configuration time? If so, you can set audit catalog globally using nh prop nhibernate.envers.default_catalog http://envers.bitbucket.org/#config-reference If you want to set catalog name per audit entity, you can use SetTableInfo https://bitbucket.org/RogerKratz/nhibernate.envers/raw/90f269d175a10bcf26226680106e08a289923a74/Src/NHibernate.Envers.Tests/NetSpecific/UnitTests/Fluent/TableNameTest.cs
If you do mean "setting entity catalog at runtime" like sometimes entity A should be persisted to X and sometimes to Y, I don't understand you. How should that work? What should decide this runtime decision? /Roger -------- Original message -------- >From Atilla İlhan KARTAL <[email protected]> Date: 2014/05/28 15:26 (GMT+01:00) To [email protected] Subject [nhusers] Nhibernate Envers Multiple Database Auditing Dear All; I am using multiple database in my project. I am setting entity catalog at runtime. For example query SELECT ..... FROM catalogname.dbo.entity_table JOIN othercatalogname.dbo.entity_table ON ..... ....... I want to make audit my data. I want to create audit tables in entity database. How can i set audit catalog at runtime? Best regards -- Atilla İlhan KARTAL Web Application & Software Architect (Java & PHP & Registered Android Developer) Kuşadası / Aydın / Turkey www.atillailhankartal.com.tr<http://www.atillailhankartal.com.tr> twitter.com/TrojanMyth<http://twitter.com/TrojanMyth> -- You received this message because you are subscribed to the Google Groups "nhusers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. To post to this group, send email to [email protected]<mailto:[email protected]>. Visit this group at http://groups.google.com/group/nhusers. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "nhusers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/nhusers. For more options, visit https://groups.google.com/d/optout.
