Hi


We use Envers to do our Logging and Auditing with NHibernate Fluent 
Configuration. We would like to use the ValidityAuditStrategy  but we haven't 
been able to make it work. 


Code

var fluentConf = Fluently.Configure()
          .Database(pConnection)
          .Mappings(m =>
           m.FluentMappings.AddFromAssemblyOf<MetaObject>())
           .Mappings(m =>  
m.FluentMappings.Conventions.AddFromAssemblyOf<MetaObject>())
           .ExposeConfiguration(cfg =>
               {                  cfg.IntegrateWithEnvers(GetEnversMappings()); 
                  // Strategy
                  //cfg.SetProperty("nhibernate.envers.audit_strategy ", 
typeof(ValidityAuditStrategy).AssemblyQualifiedName); // fails
                  cfg.SetProperty("nhibernate.envers.audit_strategy ", 
"NHibernate.Envers.Strategy.ValidityAuditStrategy"); // fails
                  //cfg.SetEnversProperty(ConfigurationKey.AuditStrategy, 
typeof(ValidityAuditStrategy));  // fails
                                          }
            ).ExposeConfiguration(cfg => new SchemaUpdate(cfg).Execute(false, 
true)); // automatic creation of tables 



No matter how we configure it, the default strategy is used. None of the 
created audit tables have the "REVEND" column.


Any help is greatly appreciated. Thanks in advance.

-- 
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/groups/opt_out.

Reply via email to