【发布时间】:2012-10-01 19:51:31
【问题描述】:
我有两个 EntityFramework 模型,我想将它们组合成一个 DTO。有没有办法做到这一点?以下问题有几个想法,但您要么必须创建复合模型,要么无法调用 Mapper.AssertConfigurationIsValid 来验证所有属性都将被设置。
Is it possible to map multiple DTO objects to a single ViewModel using Automapper? 单视图模型使用自动映射
【问题讨论】:
标签: entity-framework automapper