Tag: automapper 6

AutoMapper:ForMember()和ForPath()有什么区别?

对不起我的英文 我正在阅读AutoMapper的ReverseMap() ,无法理解ForMember()和ForPath()之间的区别。 在我用ForMember()实现的经验中描述了实现。 例如,在我配置反向映射的代码之后: public class Customer { public string Surname { get; set; } public string Name { get; set; } public int Age { get; set; } } public class CustomerDto { public string CustomerName { get; set; } public int Age { get; set; } } static void Main(string[] args) { […]