Eric Polerecky Episodes

# 111 Introduction to AutoMapper


Level: Beginner

Author: Eric Polerecky

Tags: Dot Net AutoMapper

Views: (2882) Watched: (4966)

In this episode we will take a look at how we can simplify our entity mapping by using AutoMapper.

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. Currently, 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.