How to map an interface in nhibernate?
Posted
by Josh
on Stack Overflow
See other posts from Stack Overflow
or by Josh
Published on 2010-02-18T06:17:50Z
Indexed on
2010/04/21
10:23 UTC
Read the original article
Hit count: 223
fluent-nhibernate
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.
© Stack Overflow or respective owner