View on GitHub

AutoMapper

A convention-based object-object mapper. 100% organic and gluten-free. Takes out all of the fuss of mapping one object to another.

Download this project as a .zip file Download this project as a tar.gz file

What is AutoMapper?

AutoMapper is a simple little library built to solve a deceptively complex problem - getting rid of code that mapped one object to another. This type of code is rather dreary and boring to write, so why not invent a tool to do it for us?

How do I get started?

Check out the getting started guide. When you're done there, the docs go in to the nitty-gritty details.

Where can I get it?

First, install NuGet. Then, install AutoMapper from the package manager console:

PM> Install-Package AutoMapper

Any support for Database Frameworks/ORMs?

AutoMapper.Data: ADO.NET Support

Map from IDataReader

AutoMapper.EF6: Extension Methods for EF6

Async extension methods for ProjectTo

AutoMapper.Collection: Map collections by means of equivalency

EqualityComparision between 2 classes

Add, map to, and delete items in a collection by comparing items for matches

AutoMapper.Collection.EF to support Equality by Primary Keys

Persist methods to handle Insert/Update/Delete DTOs to the Entities

ExpressionMapping: Map Linq Expressions

Useful with OData

How can I get help?

For quick questions, Stack Overflow is your best bet. For harder questions, head over to the mailing list. Finally, for bugs, issues or feature requests, create a GitHub Issue.