Skip to content

Constructor Mapping

Required package: Dapper.FluentMap

Select supported constructors or an explicit root-level factory.

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

ConstructUsing(
customer => customer.Id,
customer => customer.Name,
Customer.Restore);

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