Good. Thanks.

From: [email protected] [mailto:[email protected]] On Behalf Of 
Alex Brown
Sent: den 15 november 2012 12:14
To: [email protected]
Subject: Re: [nhusers] NHibernate envers not creating tables

That's exactly the problem....
Not sure how I managed to get them round the wrong way when i was refactoring.

I'm planning to do a blog post shortly on getting this set up with fluent nh 
today, I'll link from here when it's done to help others



On Thursday, 15 November 2012 09:13:57 UTC, Roger wrote:
I don't know fluent nh at all, but it seems you're updating the schema before 
configuring envers?

From: [email protected]<javascript:> 
[mailto:[email protected]<javascript:>] On Behalf Of Alex Brown
Sent: den 14 november 2012 19:34
To: [email protected]<javascript:>
Subject: [nhusers] NHibernate envers not creating tables

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/-/Zlf8lAsBeskJ.
To post to this group, send email to [email protected]<javascript:>.
To unsubscribe from this group, send email to 
[email protected]<javascript:>.
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.
--
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/-/1q_ZH93kp10J.
To post to this group, send email to 
[email protected]<mailto:[email protected]>.
To unsubscribe from this group, send email to 
[email protected]<mailto:[email protected]>.
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
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.

Reply via email to