MapsGenerator 1.0.0
See the version list below for details.
dotnet add package MapsGenerator --version 1.0.0
NuGet\Install-Package MapsGenerator -Version 1.0.0
<PackageReference Include="MapsGenerator" Version="1.0.0" />
paket add MapsGenerator --version 1.0.0
#r "nuget: MapsGenerator, 1.0.0"
// 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.
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.
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:
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Microsoft.CodeAnalysis.Common (>= 4.1.0)
- Microsoft.CodeAnalysis.CSharp (>= 4.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.