A convention-based object-object mapper.
AutoMapper uses a fluent configuration API to define an object-object mapping strategy. AutoMapper uses a convention-based matching algorithm to match up source to destination values. AutoMapper is geared towards model projection scenarios to flatten complex object models to DTOs and other simple objects, whose design is better suited for serialization, communication, messaging, or simply an anti-corruption layer between the domain and application layer.
AutoMapper supports the following platforms:
- .NET 4.5+
- .NET Standard 1.3+ <https://docs.microsoft.com/en-us/dotnet/standard/net-standard>
- .NET Standard 2.0+ https://docs.microsoft.com/en-us/dotnet/standard/net-standard
New to AutoMapper? Check out the :doc:`Getting-started` page first.
.. toctree:: :hidden: :maxdepth: 2 :caption: User Documentation Getting-started 5.0-Upgrade-Guide Static-and-Instance-API Migrating-from-static-API Conventions Understanding-your-mapping The-MyGet-build
.. toctree:: :maxdepth: 2 :caption: Feature Documentation Flattening Reverse-Mapping-and-Unflattening Projection Configuration-validation Inline-Mapping Lists-and-arrays Nested-mappings Custom-type-converters Custom-value-resolvers Value-transformers Null-substitution Before-and-after-map-actions Dependency-injection Mapping-inheritance Queryable-Extensions Configuration Construction Conditional-mapping Open-Generics Dynamic-and-ExpandoObject-Mapping Expression-Translation-(UseAsDataSource)
The source code contains unit tests and samples for all of the features listed above. To view the samples, browse the source code.
The latest builds can be found at NuGet
The dev builds can be found at MyGet
The discussion group is hosted on Google Groups