AutoMapper: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

异常处理汇总-后端系列 http://www.cnblogs.com/dunitian/p/4523006.html

应用场景:ViewModel==>Mode映射的时候出错

AutoMappe r错误信息: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=====================================================================NoteInfo -> NoteBackModel (Destination member list)PawChina.Models.NoteInfo -> PawChina.Models.BackModels.NoteBackModel (Destination member list)

Unmapped properties:SeoInfo

Model里面比ViewModel多了这个

简单处理:指定属性忽略

扩展:https://github.com/AutoMapper/AutoMapper/wiki/Nested-mappings

 

posted @ 2016-06-22 10:34  毒逆天  阅读(6330)  评论(0编辑  收藏  举报