我正在尝试使用Automapper
映射2种类型var userRightInternal = Mapper.Map<MibUserRight, UserRight>(userRight,
dest => dest.ConfigureMap().ForMember(p => p.PricingModel, m => m.Ignore()));
但我仍然收到以下错误:
错误映射类型
映射类型:MibUserRight - &gt; UserRight GVP.Database.MibUserRight - &gt; TvOpenPlatform.UserRights.Domain.Entities.UserRight
类型地图配置:MibUserRight - &gt; UserRight GVP.Database.MibUserRight - &gt; TvOpenPlatform.UserRights.Domain.Entities.UserRight
属性:PricingModel
为什么它要映射,如果我告诉它忽略?