DapperLib / DapperLib/Dapper.Contrib

Errors testing Dapper.Contrib when used with the Dapper.StrongName pacakge.

Open
#108 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

Using Dapper.Config with Dapper.StrongName causes the following error in Dapper.Tests.Config

CS0121 The call is ambiguous between the following methods or properties: 'Dapper.SqlMapper.QueryAsync<T>(System.Data.IDbConnection, string, object, System.Data.IDbTransaction, int?, System.Data.CommandType?)' and 'Dapper.SqlMapper.QueryAsync<T>(System.Data.IDbConnection, string, object, System.Data.IDbTransaction, int?, System.Data.CommandType?)' Dapper.Tests.Contrib (netcoreapp3.1) C:\Pub\Pulls\Dapper\Dapper.Contrib\tests\Dapper.Tests.Contrib\TestSuite.Async.cs 107 Active

Removing the Dapper.SqlBuilder from Dapper.Tests.Config brings up the following error:

CS0246 The type or namespace name 'SqlBuilder' could not be found (are you missing a using directive or an assembly reference?) Dapper.Tests.Contrib (netcoreapp3.1) C:\Pub\Pulls\Dapper\Dapper.Contrib\tests\Dapper.Tests.Contrib\TestSuite.Async.cs 238 Active

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

Start with Dapper.Contrib/tests/Dapper.Tests.Contrib/TestSuite.Async.cs at lines 107 and 238, then inspect how Dapper.Config, Dapper.StrongName, and Dapper.SqlBuilder are referenced by the test project. Reproduce the reported compiler errors and verify that the tests compile with a single QueryAsync method and a resolvable SqlBuilder type.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
build-system, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.