首页 新闻 会员 周边
1
回答数

回答被采纳 10 AutoMapper 使用 Conventions 映射出错

使用 AutoMapper 7.0..1 转换出错! UserOutput 中多出一个 Account 属性,在 User 中不存在,导致无法转换成功,如果直接使用 cfg.CreateMap<Use