Problem auto mapping => collection of view models instead another view model
问题 I have something like this public class AViewModel { public decimal number { get; set; } public List<BViewModel> BVM { get; set; } } public class BViewModel { public string someString{ get; set; } } public class SomeObject { public decimal number { get; set; } public List<OtherObjects> BVM { get; set; } } public class OtherObjects { public string someString{ get; set; } } Mapper.CreateMap<SomeObject,AViewModel>(); When I have this I get Trying to map OtherObjects to BViewModel Using mapping