Skip to content

Dependency Injection Integration

Required package: FluentMap.DependencyInjection

Register immutable configuration and FluentMapRuntime in a service collection.

Use this capability when the column shape and .NET model should remain separated by explicit, reviewable configuration.

services.AddFluentMap(builder =>
{
builder.Configure(config => config.AddMap<CustomerMap>());
});

FluentMap registers typed metadata and applies it through the matching materialization path. SQL, connections, parameters, and lifecycle remain responsibilities of the application and Dapper.