Skip to content

Runtime Isolation

Required package: Dapper.FluentMap

Keep mapping configuration local instead of mutating global Dapper state.

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

var runtime = new FluentMapConfigurationBuilder()
.AddMap<CustomerMap>()
.Build()
.CreateRuntime();
var customer = runtime.QueryMappedSingle<Customer>(connection, sql);

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