私はLLBLGENを使用しています.エンティティクラスをc#クラスにマップしたい.
Mapper.CreateMap<Model.Location, EntityClasses.LocationEntity>();
Mapper.CreateMap<EntityClasses.LocationEntity, Model.Location>();
EntityClasses.LocationEntity loEntity = LocationEntity.Query.Where(s => s.Id == 1).FirstOrDefault(); Model.Location モデル = Mapper.Map(loEntity);
モデルは問題ありません。モデル マップ エンティティ オブジェクト エラー
LocationEntity locationEntity = Mapper.Map(モデル); タイプ マップ構成が欠落しているか、サポートされていないマッピングです。
マッピング タイプ: Location -> IPrefetchPath Model.Location -> SD.LLBLGen.Pro.ORMSupportClasses.IPrefetchPath
宛先パス: LocationEntity
ソース値: Model.Location
問題とは何ですか?