| title | API Overview |
|---|---|
| description | Find the main configuration, mapping, query, and runtime entry points. |
Required package:
Dapper.FluentMap
Find the main configuration, mapping, query, and runtime entry points.
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.
:::caution Initialize before concurrent queries and treat the effective configuration as read-only afterward. :::