13.0 Upgrade Guide
AutoMapper now targets .Net 6
AddAutoMapper is part of the core package and the DI package is discontinued
AllowAdditiveTypeMapCreation was removed
Be sure to call
CreateMap once for a source type, destination type pair. If you want to reuse configuration, use mapping inheritance.
ProjectTo runtime polymorphic mapping with Include/IncludeBase
We consider this an off the beaten path feature and we don’t expose it through
CreateProjection. You can use an extension method or
Context.State similar to
The same pattern the framework uses to pass state to delegates. Note that
Items are mutually exclusive per
Custom Equals/GetHashCode for source objects
To avoid broken implementations, we no longer call those when checking for identical source objects, we hard code to checking object references.