DapperLib / DapperLib/Dapper.Contrib
Add `List<T> GetMany<T>(List<id>)` to get items with IN clause
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 293
- Forks
- 109
- PR merge metrics
- No merged PRs in 30d
Description
I need a way to fetch entities with an IN clause, and I'm finding the extensions a bit difficult to extent.
My options are implementing a GetMany on all the individual entity stores, duplicate the table name logic from this extension, or just patch this extension to include the method.
For background, Queries with IN clause are needed to implement some GraphQL DataLoader queries, as they batch a bunch of requests by IDs together.
Thoughts?
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 locating the extension mentioned in the issue and reviewing how it derives table names for entity stores. Implement the requested List GetMany(List) behavior using an IN clause, then verify that it batches entity lookups by IDs without requiring changes to individual stores.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100