Skip to content

Mapped Streaming

Required package: Dapper.FluentMap

Enumerate mapped rows without buffering the full result in memory.

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

foreach (var customer in connection.QueryMappedUnbuffered<Customer>(sql))
{
Process(customer);
}

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