title: Mapping with extendend class
body: <p>I'm using NHibernate with <a href="http://code.google.com/p/codeconform/" rel="nofollow noreferrer">ConfORM</a> to map my domain entities. </p>
  
  <p>Assuming the following classes:</p>
  
  <pre><code>public class Event {
      public virtual Guid Id { get; set; }
      public virtual string Title { get; set; }
      public virtual bool Active { get; set; }
  }
  
  public class EventA : Event {
      public virtual string PropertyA { get; set; }
  }
  
  public class EventB : Event {
      public virtual string PropertyB { get; set; }
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/ptXYQ.jpg" alt="Diagram"></p>
  
  <p>I need <strong>not repeat</strong> NHibernate tables fields in derived classes, but uses the base class, as in the diagram.</p>
  
  <p>My ConfORM setup :</p>
  
  <pre><code>var domainAssembly = typeof(Event).Assembly;
  var domainEntities = from t in domainAssembly.GetTypes() where t==typeof(Event) select t;
  var orm = new ObjectRelationalMapper();
  orm.Patterns.Sets.Add(new UseSetWhenGenericCollectionPattern());
  orm.Patterns.PoidStrategies.Add(new ConfOrm.Patterns.IdentityPoidPattern());
  orm.TablePerConcreteClass(domainEntities);
  var patternsAppliers = new CoolPatternsAppliersHolder(orm);
  var mapper = new Mapper(orm, patternsAppliers);
  [...]
  </code></pre>
  
  <p>Any ideas on how to approach the problem could?</p>