title: Automapper with base class and different configuration options for implementations
body: <p>I have two classes (MVC view model) which inherits from one abstract base class.</p>
  
  <pre><code>abstract class BaseModel { }
  
  class Car : BaseModel 
  {
      public string Speed { get; set; }
  }
  
  class Camper : BaseModel
  {
      public int Beds { get; set; } 
  }
  </code></pre>
  
  <p>and want to configure AutoMapper with base class, something like:</p>
  
  <pre><code>Mapper.CreateMap&lt;BaseModel, DataDestination&gt;();
  
  var someObj = new DataDastination();
  Mapper.Map(instanceOfBaseModel, someObj);
  </code></pre>
  
  <p>Here I get error, because Automapper doesn't have configuration of Car or Camper. Tried configuring Automapper with something like this:</p>
  
  <pre><code>Mapper.CreateMap&lt;BaseModel, DataDestination&gt;()
      .ForMember(dest =&gt; dest.SomeProp, mapper =&gt; mapper.MapFrom( .... ));
  </code></pre>
  
  <p>In MapFrom, I only see properties from base class! How to configure Automapper to use BaseClass, and specific ForMember expression for Car and Camper? For example, if it's a Car, map this property from this, and if it's a Camper, map this property from somewhere else. </p>