Automapper: Auto map collection property for a dto object
问题 I have a domain object public class ProductModel { public long Id {get;set;} public string Name {get;set;} public string SerialNumber {get;set;} } Single Dto class: public class ProductDto { public long Id {get;set;} public string Name {get;set;} public string SerialNumber {get;set;} } Single Dto class that is a list of Dto object: public class ProductListDto : List<ProductDto> { public List<ProductDto> Products; public ProductListDto() { Products = new List<ProductDto>(); } } And I'd like to