Which version of NHibernate does ED support?

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
edowney
Posts: 14
Joined: Thu 07 Mar 2013 13:10

Which version of NHibernate does ED support?

Post by edowney » Tue 17 Jun 2014 15:22

So I'm using the NHibernate and Repository and Unit of Work templates in my project. All of the code generated fine and compiled ok. When I go to run my first nunit test I get an error that sounds like it doesn't like the version of nhibernate I'm using. I referenced in the latest version I had (3.3.3). When I looked at the mapping file ED created I see it said 'xmlns="urn:nhibernate-mapping-2.2"'. Does this mean it's using 2? I am using v2 right now on my other projects and this would be my first project in v3. So I switched references to v3 and my "using nhibernate.linq;" failed which now makes me think that v3 shares the xmlns with v2? Dunno. Anyway here's the current error message I get when I go to test:

An exception occurred parsing configuration :The 'name' attribute is invalid - The value 'use_outer_join' is invalid according to its datatype 'String' - The Enumeration constraint failed.

It's being raised from NHibernateSessionProvider.Configuration when it does the new Configuration()

Any help would be greatly appreciated.

Thanx!

Shalex
Site Admin
Posts: 8247
Joined: Thu 14 Aug 2008 12:44

Re: Which version of NHibernate does ED support?

Post by Shalex » Fri 20 Jun 2014 15:54

edowney wrote:When I looked at the mapping file ED created I see it said 'xmlns="urn:nhibernate-mapping-2.2"'. Does this mean it's using 2? I am using v2 right now on my other projects and this would be my first project in v3.
The 2.2 mapping schema is compatible with higher versions of NHibernate.
edowney wrote:An exception occurred parsing configuration :The 'name' attribute is invalid - The value 'use_outer_join' is invalid according to its datatype 'String' - The Enumeration constraint failed.
Please perform these steps:
1) open Model Settings > Model > Configuration and set the Use Outer-Join parameter to none (blank), press OK
2) open app.config of your application and remove the use_outer_join attribute (because it is deprecated, use max_fetch_depth)

edowney
Posts: 14
Joined: Thu 07 Mar 2013 13:10

Re: Which version of NHibernate does ED support?

Post by edowney » Tue 24 Jun 2014 14:58

Excellent - thanks!

Post Reply