Skip to content

Compatibility Considerations

Required package: Dapper.FluentMap

Check target frameworks, dependency ranges, providers, and global state.

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

public sealed class CustomerMap : EntityMap<Customer>
{
public CustomerMap()
{
Map(x => x.Id).ToColumn("customer_id");
Map(x => x.Name).ToColumn("customer_name");
}
}

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

The minimum supported Dapper version is now 2.1.89; 2.1.79 is no longer supported. Check direct and transitive package resolution, refresh lock files, and rerun provider-backed tests. The range [2.1.89,3.0.0) is a minimum constraint, not an exact pin. General provider certification does not automatically certify every provider-specific DateOnly/TimeOnly CLR shape.