WILT: NHibernate – An association from the table MyTable refers to an unmapped class: MyClass


If you are sure that you already created the mapping for MyClass, the first thing to check is that you change the BuildAction Property for the mapping file MyClass.hbm.xml to Embedded Resource.

This can be done by right-clicking on the mapping file in Solution Explorer and then clicking on Properties. The BuildAction is the first property in the list.

Advertisements

4 Responses to WILT: NHibernate – An association from the table MyTable refers to an unmapped class: MyClass

  1. maria says:

    i got the same problem , but this doesnt solve my problem still giving the same error . what to do??

  2. maria says:

    gOT THE same problem but doesnt solve by this. i have recompiled the solution as wel

  3. benoit808 says:

    I don’t know what the problem could be. It is hard to troubleshoot without seeing the solution.

  4. maria says:

    yea Please check my coding at

    http://forums.asp.net/p/1612888/4126755.aspx#4126755

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: