DapperLib / Dapper.Contrib

Dapper community contributions - additional extensions for Dapper
Other
268 stars 99 forks source link

Escape id column name in Get, GetAsync #149

Open ghills opened 1 year ago

ghills commented 1 year ago

Get\GetAsync do not work correctly with SQL Server when the Id column is a reserved keyword (e.g. "Key") marked with the ExplicitKeyAttribute.

Use the adapter specific column name escaping to resolve the issue.

resolves #150