Category: Open Source

Nhibernate QuerySyntaxException is not mapped from

NHibernate Benjamin Perkins

An important step which is often overlooked when beginning the process of mapping your database is to set the Build Action to Embedded Resource. (Buildvorgang – Eingebettete Resource). If you forget to do this you may receive a QuerySynataxException stating that the … is not mapped [from …]. It is also possible to store the […]

Read More →

NHibernate MappingException association references unmapped class

NHibernate Benjamin Perkins

During the mapping process you may encounter this error. In my situation the case was that I had the wrong namespace identified within the class attribute within a bag element containing a one-to-many element, like the below. <bag name=”Customer”>    <key column=”CUST_ID” />    <one-to-many class=”CompanyName.SysName.Nhibernate.Common.Customer” /> </bag> Instead of Common I had another directory […]

Read More →