‘urn:nhibernate-mapping-2.2' has invalid child element 'property' and Fluent NHibnerate

Posted by Marcus Hammarberg on February 12, 2010
Stats

OK – this was almost driving me crazy.

For demonstration purposes I had used the automapping feature of Fluent NHibnernate.  In a very standard way – I used all of the conventions out of the box.

Except… I forgot to check the conventions. For example for primary keys the convention is to name it Id. Exactly that! Not ID or id or anything.



Published by Marcus Hammarberg on Last updated