逆天之路

你以什么眼光看世界,你的世界就是什么。你不相信什么,你的世界就没有什么....

Fork me on GitHub

您现在的位置是:首页>笔记> 当前文章

AutoMapper:Unmapped members were found.

作者:dunitian 发布时间:2016-07-16 11:05 点击量:738

分类: > 异常处理 > 后端大系 > AutoMapper

  • 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

关键字词  毒逆天  原创

 

毒逆天