我使用Automapper从我的Page EF POCO实体映射到DTO接口,如下所示:当AutoMapper试图创建映射时,我得到以下异常:
无法映射Pipeline.CMS.Contracts.UI.IPageView上的下列属性:页面添加自定义映射表达式、忽略、添加自定义解析程序或修改目标类型System.Col
在迁移到v2.0之后,我发现了这个问题public class SurveyFormView public MultiSelectList Statistics {当我使用映射:model = Mapper.Map<SurveyForm, SurveyFormView>(item);时,我得到:
[ArgumentException: Type 'System.Web.Mvc.MultiSelectListc:\dev\AutoMapper\src\AutoMapper</
目前,我需要映射以下对象public class ContactInfo public int ContactInfoId { get; set; } public bool Primary { get; set; }我试图将它映射到以下对象public PhoneRestrictions Restrictions { get; set; }
public bool