Not yet...
My problem however was where i was initialising the envers:
.ExposeConfiguration(cfg => new
SchemaUpdate(cfg).Execute(false, true))
.ExposeConfiguration(SetupEnvers)
Those 2 lines were round the wrong way
(schema was being built before init. of envers)
On Wednesday, 14 November 2012 18:33:57 UTC, Alex Brown wrote:
>
> Suddenly, the envers tables (REVINFO etc...) are no longer being created...
>
> I setup NHibernate / envers like this:
>
> public static ISessionFactory
> CreateSessionFactory(FluentConfiguration dbConfiguration = null)
> {
> if (dbConfiguration == null)
> dbConfiguration = Database();
>
> return dbConfiguration
> .Mappings(m =>
> m.FluentMappings.AddFromAssemblyOf<LicenseClassMap>())
> .ExposeConfiguration(cfg => new
> SchemaUpdate(cfg).Execute(false, true))
> .ExposeConfiguration(SetupEnvers)
> .BuildSessionFactory();
> }
>
> private static void SetupEnvers(Configuration cfg)
> {
> var enversConf = new
> NHibernate.Envers.Configuration.Fluent.FluentConfiguration();
> enversConf.Audit<License>();
> enversConf.Audit<LicenseActiveFeature>();
>
> cfg.IntegrateWithEnvers(enversConf);
> }
>
> I can't tell what's changed to make it stop working...
> License and LicenseActiveFeature look like this:
>
> My unit tests fail on inserting an entry, because envers is looking for
> REVINFO.... which hasn't been created?!
>
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/nhusers/-/z1PT9hsN_d0J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.