Skip to content

Property Converters

Required package: Dapper.FluentMap

Convert database values before assigning them to mapped properties.

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

Map(x => x.Status)
.ToColumn("status_code")
.ConvertFromDatabaseUsing<ProductStatusConverter, string>();

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