Page 1 of 1

Which version of NHibernate does ED support?

Posted: Tue 17 Jun 2014 15:22
by edowney
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!

Re: Which version of NHibernate does ED support?

Posted: Fri 20 Jun 2014 15:54
by Shalex
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)

Re: Which version of NHibernate does ED support?

Posted: Tue 24 Jun 2014 14:58
by edowney
Excellent - thanks!