简体   繁体   English

Automapper Mapper.DynamicMap(…)

[英]Automapper Mapper.DynamicMap(…)

Mapper.DynamicMap(object, source, destination) is deprecated in the latest version of Automapper. Mapper.DynamicMap(object, source, destination)在最新版本的Mapper.DynamicMap(object, source, destination)中已弃用。

What is the alternative of this method when the source and destination values are not known until runtime?当源值和目标值直到运行时才知道时,此方法的替代方法是什么?

I found the answer.我找到了答案。 It was all put into one method:这一切都被放在一种方法中:

Mapper.Map(object, source, destination)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM