automapperautomapper-4

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?


Solution

  • I found the answer. It was all put into one method:

    Mapper.Map(object, source, destination)