I have two classes (MVC view model) which inherits from one abstract base class.
abstract class BaseModel { }
class Car : BaseModel
{
public string Speed {
Here is the topic describing Mapping Inheritance.
The following should work for you:
Mapper.CreateMap<BaseModel, DataDastination>()
.Include<Car, DataDastination>()
.Include<Camper, DataDastination>();//.ForMember(general mapping)
Mapper.CreateMap<Car, DataDastination>();//.ForMember(some specific mapping)
Mapper.CreateMap<Camper, DataDastination>();//.ForMember(some specific mapping)
Use .IncludeAllDerived()
Mapper.CreateMap<BaseModel, DataDestination>().IncludeAllDerived()
Mapper.CreateMap<Car, DataDestination>();
Mapper.CreateMap<Camper, DataDestination>();