title: Map generic EntityBase<TEntity> class with FluentNHibernate
body: <p>I have a base class for all my entity types which is like</p>
  
  <pre><code>public abstract class EntityBase&lt;TEntityType&gt; : IEntityBase where TEntityType : EntityBase&lt;TEntityType&gt;
      {
          private List&lt;IBusinessRule&gt; _brokenRules = new List&lt;IBusinessRule&gt;();
  
          private int? _hashCode;
  
          public int ID { private set; get; }
  </code></pre>
  
  <p>and in my mappings i would like to use table-per-class strategy but how to map this EntityBase class? I tryed public class EntityBaseMap:ClassMap but it doesnt work.
  So how could i map this class? The reason why I want that is I dont want to write the repetetive stuff with <code>Id(c=c.ID).Not.Null ....</code> etc but have it in one mapping class. </p>
  
  <p>my mapping class look like this</p>
  
  <pre><code>public class EntityBaseMap : ClassMap&lt;EntityBase&lt;???&gt;&gt;
  </code></pre>
  
  <p>what should i insert instead of ???</p>
  
  <p>Thanks</p>