problem with automatic mapping in fluent nhibernate

AAtDEv's Avatar

AAtDEv

18 May, 2010 10:51 AM via web

hi,

i use nhibernate and fluent nhibernate with linq to nhibernate to access to my data base but when i want to génerate my class map automaticly it give me this error can any one help me please in the first time it give that it can load the NHibernat assembly but when i have change the version of Nhibernate from 2.1.2.4 to 2.1.0.4 it give me now this error :

(XmlDocument)(3,6): XML validation error: L'élément 'class' dans l'espace de noms 'urn:nhibernate-mapping-2.2' a un élément enfant non valide 'many-to-one' dans l'espace de noms 'urn:nhibernate-mapping-2.2'. Liste d'éléments possibles attendue : 'meta, subselect, cache, synchronize, comment, tuplizer, id, composite-id' dans l'espace de noms 'urn:nhibernate-mapping-2.2'.

  1. Support Staff 2 Posted by Paul Batum on 18 May, 2010 11:49 AM

    Paul Batum's Avatar

    I think its saying that the generated xml is missing and id element. You can export the generated xml to a file to determine which entity has the issue. Also, you mentioned that you changed from 2.1.2.4 to 2.1.0.4 - is this correct? Did you downgrade your version of NH? Are you able to confirm that the error only occurred after downgrading?

  2. Support Staff 3 Posted by James Gregory on 18 May, 2010 01:30 PM

    James Gregory's Avatar

    You should update your Fluent NHibernate version to the latest binary release and see if that improves the situation.

Reply to this discussion

Preview Comments are parsed with Markdown. Help with syntax

Attached Files

    You can attach files up to 10MB

    What is the opposite of down?