❔ 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?
2 Replies
Arisu-sensei
Arisu-senseiOP2y ago
Found fix: Don't use both Dapper and Dapper.StrongName, only Dapper.StrongName.
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server