Automapper, Mapping one object member type to multiple concrete type
问题 I have this Party class which contains an object data type coming from a service. It can contain two different member types for the Item property. public class Party { public string DMVID {get; set;} public object Item { get; set; } } and this DTO public class PartyDTO { public string DMVID {get; set;} public BusinessDTO BusinessItem { get; set; } public IndividualDTO IndividualItem { get; set; } } How can I map the output of the Item to BusinessItem or IndividualItem . I know this one would