MapsGenerator 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package MapsGenerator --version 1.0.0                
NuGet\Install-Package MapsGenerator -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MapsGenerator" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MapsGenerator --version 1.0.0                
#r "nuget: MapsGenerator, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MapsGenerator as a Cake Addin
#addin nuget:?package=MapsGenerator&version=1.0.0

// Install MapsGenerator as a Cake Tool
#tool nuget:?package=MapsGenerator&version=1.0.0                

Maps Generator

MapsGenerator supports multiple sources/single destination and automapping for 1 to 1 maps and nested maps. Reverse maps will be added in future releases.

BETA VERSION! this package is likely to receive frequent updates.

Create Map

Inherit from MapperGenerator.Mapper and IN THE CONSTRUCTOR create your mappings using one of the various overloads.

CreateMap

use the DoNotMap method to exclude members from the map.

What is generated

Taking a peek at the auto generated code, we can keep track of how we're actually mapping under the hood, and debug it.

GeneratedMap

It will also be impossible to request invalid maps because of the type constraint generated.

Use it

Dependency injection is available through the generated interface IMap, which will have the same methods of Map.

using it is as simple as this:

UsingIt

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 481 5/7/2022
1.0.0 436 5/5/2022