DapperLib / DapperLib/Dapper.Contrib

Remove reference type constraint from Contrib extension methods

Open
#86 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
293
Forks
109
PR merge metrics
No merged PRs in 30d

Description

Is there a reason why all Contrib extension methods have a constraint to reference types? The base Dapper extension methods don't have such constraints.

I agree that those generally make sense, but right now they prevent me from using Dapper Contrib because I need to implement a generic interface that doesn't specify any type constraints.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Inspect the Contrib extension methods and compare their generic constraints with the base Dapper extension methods. Determine which reference-type constraints block unconstrained generic interfaces; done means the relevant methods accept value types or unconstrained type parameters without breaking existing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
database
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.