Arisu-sensei
❔ Ambiguity on IDbConnection.ExecuteAsync when using Dapper
I've got a method I'm calling to insert data into an SQL table, using Dapper, and I encountered a weird issue.
I am using
IDbConnection.ExecuteAsync(string, object, IDbTransaction, int?, CommandType?)
, but it is giving me an error that says:
The call is ambiguous between the following methods or properties: Dapper.SqlMapper.ExecuteAsync(IDbConnection, string, object, IDbTransaction, int?, CommandType?)
and Dapper.SqlMapper.ExecuteAsync(IDbConnection, string, object, IDbTransaction, int?, CommandType?)
.
They're both literally the same set of parameters, so I can't really think of a way to make it not ambiguous. Anyone have any idea what to do in this case?3 replies