title: How to map an interface in nhibernate?
body: <p>I'm using two class <code>NiceCustomer</code> &amp; <code>RoughCustomer</code> which implment the interface <code>ICustomer</code>.</p>
  
  <p>The <code>ICustomer</code> has four properties. They are:</p>
  
  <ol>
  <li><code>Property Id() As Integer</code></li>
  <li><code>Property Name() As String</code></li>
  <li><code>Property IsNiceCustomer() As Boolean</code></li>
  <li><code>ReadOnly Property AddressFullText() As String</code></li>
  </ol>
  
  <p>I don't know how to map the interface <code>ICustomer</code>, to the database.</p>
  
  <p>I get an error like this in the inner exception.</p>
  
  <blockquote>
    <p>An association refers to an unmapped class: ICustomer</p>
  </blockquote>
  
  <p>I'm using Fluent and NHibernate.</p>