更新时间:2021-09-16 09:08:08
在AutoMapper你有一个源类型和目标类型。所以,你将只能如果你有一个相应的CreateMap这种源类型和目标类型之间的映射。因此,要回答你的问题:
In AutoMapper you have a Source type and a Destination type. So you will be able to map between this Source type and Destination type only if you have a corresponding CreateMap. So to answer your questions:
地图< TSource,TDest>
告诉你一个映射源和目的地之间的类型不存在。Map<TSource, TDest>
telling you that a mapping doesn't exist between the source and destination type.