NuGet\Install-Package MapsGenerator -Version 1.0.1
dotnet add package MapsGenerator --version 1.0.1
<PackageReference Include="MapsGenerator" Version="1.0.1" />
paket add MapsGenerator --version 1.0.1
#r "nuget: MapsGenerator, 1.0.1"
// Install MapsGenerator as a Cake Addin #addin nuget:?package=MapsGenerator&version=1.0.1 // Install MapsGenerator as a Cake Tool #tool nuget:?package=MapsGenerator&version=1.0.1
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.
Now supports using custom methods inside the mapper.
MapperGenerator.Mapper and IN THE CONSTRUCTOR create your mappings using one of the various overloads.
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.
It will also be impossible to request invalid maps because of the type constraint generated.
Dependency injection is available through the generated interface
IMap, which will have the same methods of
using it is as simple as this:
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.