[英]Unable to resolve mapper issue using Automapper
I have two classes in my code except one data member everything is same.除了一个数据成员外,我的代码中有两个类,一切都相同。 But, not getting how to resolve this issue using Automapper.
但是,不知道如何使用 Automapper 解决这个问题。 Can someone please throw some light on this.
有人可以对此有所了解吗?
Class A{ public string Id; public List Values; };
Class B{ public string Id; public List Items; };
Class C{ public string Value; public string Name; public string Dept; };
CreateMap<A, B>();
- This is giving following error while doing unit test, Unmapped members were found. - 这在进行单元测试时出现以下错误,发现未映射的成员。 Review the types and members below.
查看下面的类型和成员。 Add a custom mapping expression, ignore, add a custom resolver, or modify the source/destination type
添加自定义映射表达式,忽略,添加自定义解析器,或修改源/目标类型
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.