AutoMapper - map to derived objects depend on condition
问题 I want to map source class to derived (from abstract) destination classes depend on value of some property. I have the following source classes: public partial class ApplicationDriver { public virtual ICollection<ApplicationDriverEquipment> Equipments { get; set; } } public partial class ApplicationDriverEquipment { public int Id { get; set; } [StringLength(256)] public string Make { get; set; } [StringLength(256)] public string Model { get; set; } [StringLength(256)] public string Year { get