我使用LLBLGEN,我想用c#类映射实体类。
Mapper.CreateMap<Model.Location, EntityClasses.LocationEntity>();
Mapper.CreateMap<EntityClasses.LocationEntity, Model.Location>();
EntityClasses.LocationEntity loEntity = LocationEntity.Query.Where(s =&gt; s.Id == 1).FirstOrDefault(); Model.Location model = Mapper.Map(loEntity);
模型填充没问题。但是模型映射实体对象错误
LocationEntity locationEntity = Mapper.Map(model); 缺少类型映射配置或不支持的映射。
映射类型: 位置 - &gt; IPrefetchPath Model.Location - &gt; SD.LLBLGen.Pro.ORMSupportClasses.IPrefetchPath
目的地路径: LocationEntity
来源价值: Model.Location
什么问题?