More advanced AutoMapper examples in .Net Core

How to use profiles, reverse mapping, nested mapping, and other advanced operations of the open source object mapper AutoMapper

AutoMapper is a convention-based, object-oriented mapper. An object-oriented mapper is one that transforms an input object into an output object of a different type. AutoMapper also can be used to map similar or dissimilar objects (i.e., objects having properties that may or may not be identical).

We examined the basic features of AutoMapper in a previous article. In this article we’ll explore some of the advanced features of AutoMapper.

Create an ASP.Net Core project in Visual Studio

First off, let’s create a new ASP.Net Core project in Visual Studio. Note that you can create any project, i.e., MVC or even a Console Application, to work with AutoMapper. If Visual Studio 2019 is installed in your system, follow the steps outlined below to create a new ASP.Net Core project.

To continue reading this article register now