DapperLib / DapperLib/Dapper.Contrib
Dapper.Contrib - Allow custom ISqlAdapter
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 293
- Forks
- 109
- PR merge metrics
- No merged PRs in 30d
Description
This is related to DapperLib/Dapper#336 - it would be useful if we could just plug in our own SqlAdapters in the Contrib project.
Use case - now that all the column names are quoted, column name case-insensitivity disappears in PostgreSQL (I think MySQL too). For some that may be good, others bad; rather than messing around decorating POCOs, just allow the ability to inject our own SqlAdapter.
For the fix for the above, it's just a matter of changing the AppendColumnNameand AppendColumnNameEqualsValue methods. But I have to fork the whole thing to do that. Others might want to plug in a more complex mapper.
It is possible to inject a GetDatabaseType custom callback, but it would be really useful too to have a GetDatabaseFormatter too.
Thank you.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting the existing GetDatabaseType callback and the AppendColumnName and AppendColumnNameEqualsValue methods mentioned in the issue. Trace how SQL adapters and formatting are selected, then verify that a caller can supply custom formatting for PostgreSQL column quoting without forking Dapper.Contrib.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100