FluentMap.Generators 3.0.3

dotnet add package FluentMap.Generators --version 3.0.3
                    
NuGet\Install-Package FluentMap.Generators -Version 3.0.3
                    
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="FluentMap.Generators" Version="3.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FluentMap.Generators" Version="3.0.3" />
                    
Directory.Packages.props
<PackageReference Include="FluentMap.Generators" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add FluentMap.Generators --version 3.0.3
                    
#r "nuget: FluentMap.Generators, 3.0.3"
                    
#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.
#:package FluentMap.Generators@3.0.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=FluentMap.Generators&version=3.0.3
                    
Install as a Cake Addin
#tool nuget:?package=FluentMap.Generators&version=3.0.3
                    
Install as a Cake Tool

FluentMap.Generators

Build-time source generator for Dapper.FluentMap mapping registration and supported row materializers.

The generator discovers eligible IEntityMap<TEntity> implementations declared in the current compilation and emits an AddGeneratedMappings() extension method that registers them through the existing AddMap<TMap>() / AddProfile<TMap>() APIs. For explicit maps with literal columns and supported deterministic construction, it also registers generated IDataRecord -> entity materializers for the matching ordered column shape, including flat properties, nested object paths and constructor-built Value Objects.

dotnet add package FluentMap.Generators

The NuGet PackageId is FluentMap.Generators. The source-generator assembly remains Dapper.FluentMap.Generators.dll.

using Dapper.FluentMap;

FluentMapper.Initialize(config =>
{
    config.AddGeneratedMappings();
});

Generated registration avoids reflection-based assembly scanning for maps in the current compilation. It does not scan referenced assemblies, execute map constructors during generation, parse SQL or replace FluentMapper.Validate(). Unsupported maps and unexpected column shapes continue to use the runtime fallback.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

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
3.0.3 39 9/10/2026