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

By Mash B

Issue building project when using NHibernate


Make sure 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.

NHibernate – An association from the table MyTable refers to an unmapped class: MyClass  (1513 Views)