Wonder if someone could please help me to understand how to fix an error in my code.
Im trying to insert a new record into db and keep getting:
Quote:
NHibernate.MappingException: Unknown entity class: LicenseManager.BusinessObjects.Email at NHibernate.Impl.SessionFactoryImpl.GetPersister(Type theClass) etc etc error.
I do have an Email.cs class with all relevant properites in the appropriate namespace and I cant see what the problem is. My nhibe xml file is like this.
Code:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0" default-access="property">
<class name="LicenseManager.BusinessObjects.Email, LicenseManager" table="Email">
<id name="EmailID" column="emailID">
<generator class="identity" />
</id>
<property name="UserEmail" column="email" />
<property name="EmailTypeID" column="emailTypeID" />
</class>
</hibernate-mapping>
Gratefull for any help.
gareth