Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escape id column name in Get, GetAsync #149

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ghills
Copy link

@ghills ghills commented Dec 5, 2022

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

Gavin Hills added 2 commits December 5, 2022 08:41
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.
get query caching uses connection type specific formatting so the
cache needs to be appropriately scoped in cases of concurrent usage
with different connection types.

Also split out query for GetAll queries to distinguish those.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GetAsync fails on SQL Server when the primary key property is a reserved SQL keyword
1 participant