Simon Harriyott

NHibernate.MappingException

Just got this error message and had no relevant results on Google:

System.TypeInitializationException : The type initializer for 'MyApp.Repositories.NHibernateHelper' threw an exception.
----> NHibernate.MappingException : An association from the table MyTable refers to an unmapped class: MyApp.Domain.MyClass

Schoolboy error; I'd forgotten to mark the hbm.xml files as embedded resources.
3 November 2009