How to map an interface in nhibernate?
- by Josh
I'm using two class NiceCustomer & RoughCustomer which implment the interface ICustomer.
The ICustomer has four properties. They are:
1) Property Id() As Integer
2) Property Name() As String
3) Property IsNiceCustomer() As Boolean
4) ReadOnly Property AddressFullText() As String
I don't know how to map the interface ICustomer, to the database.
I get an error like this in the inner exception.
"An association refers to an unmapped class: ICustomer"
I'm using Fluent and NHibernate.
Any help would be greatly appreciated. Thanks in advance.