Skip to content

Nested Objects

Required package: Dapper.FluentMap

Materialize mapped member paths with FluentMap-controlled queries.

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

Map(x => x.Address.City).ToColumn("city_name");
var customer = connection.QueryMappedSingle<Customer>(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.