Skip to content

Multi-Mapping

Required package: Dapper.FluentMap

Compose two or three mapped row segments through splitOn.

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

var rows = connection.QueryMapped<Customer, Order, CustomerOrder>(
sql, (customer, order) => new(customer, order), splitOn: "order_id");

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