FluentMap.Generators 3.5.0-rc.1

This is a prerelease version of FluentMap.Generators.
There is a newer version of this package available.
See the version list below for details.
dotnet add package FluentMap.Generators --version 3.5.0-rc.1
                    
NuGet\Install-Package FluentMap.Generators -Version 3.5.0-rc.1
                    
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.5.0-rc.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FluentMap.Generators" Version="3.5.0-rc.1" />
                    
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.5.0-rc.1
                    
#r "nuget: FluentMap.Generators, 3.5.0-rc.1"
                    
#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.5.0-rc.1
                    
#: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.5.0-rc.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=FluentMap.Generators&version=3.5.0-rc.1&prerelease
                    
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 column shape, including safe permutations of distinct columns, 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(). Explicit delegate ConstructUsing(...) factories remain runtime-only and produce DFM011; strict generated materialization rejects those shapes rather than using a hidden fallback. Missing, mapped-additional or duplicate-column shapes likewise fail deterministically in strict mode.

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.5.0 37 10/1/2026
3.5.0-rc.2 36 10/1/2026
3.5.0-rc.1 42 10/1/2026
3.4.0 81 9/28/2026
3.0.3 113 9/10/2026