简体   繁体   中英

Automapper Mapper.DynamicMap(…)

Mapper.DynamicMap(object, source, destination) is deprecated in the latest version of Automapper.

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)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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