AutoMapper is a popular object-to-object mapping library that can be used to map objects belonging to dissimilar types.

As an example, you might often need to map the DTOs (Data Transfer Objects) in your application to the model objects.

AutoMapper saves you the tedious effort of having to manually map one or more properties of such incompatible types.To start working with AutoMapper, you should create a project in Visual Studio and then install AutoMapper. You can install from NuGet using the following command in the NuGet Package Manager Console Window:PM> Install-Package AutoMapperCreating mappings using AutoMapper
Consider the following two classes.To read this article in full or to leave a comment, please click here

Leave a Reply