Mapping complex types with AutoMapper
When you need to go beyond a simple mapping from a source member of one type to a destination member of another type, AutoMapper
has some powerful tools in the shape of custom Converters
and Resolvers
.
However, the documentation can be a little unclear as to which type to use for a given situation, and exactly how to register the type in your mapping configuration.
Furthermore, there are too many parameters supplied to the methods you need to implement and it can be confusing to write, much less come back and maintain later.