Top 12 features you need to know about

As you start to use AutoMapper, you will realize that there is a wide variety of things that you can do with it. This section will teach you all about the most commonly performed tasks and most commonly used features as follows:

  • Flattening
  • Null substitution
  • Projection
  • Nested mapping
  • Lists, arrays, and dictionaries
  • Mapping inheritance
  • Custom resolvers
  • Custom type converters
  • Dynamic mapping
  • Interface mapping
  • Existing object mapping
  • Inversion of control


AutoMapper will only map object pairs that are explicitly registered by the CreateMap method, and to perform the mapping, we need to call the Map method.

One of the main reasons for mapping is often to convert a complex object into a simple one. Consider the mapping ...

Get Instant AutoMapper now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.