delegating Member mapping to child object with AutoMapper
问题 I have a destination class that combines properties from a source class and an inner class of that source class. class Source { public int Id {get;set;} public int UseThisInt {get;set;} public InnerType Inner {get;set;} // other properties that the Destination class is not interested in } class InnerType { public int Id {get;set;} public int Height {get;set;} // more inner properties } my destination class should combine UseThisInt and all properties of the InnerType . class Destination {