-
-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Labels
Description
I am using the Dapper overloads which accept a CommandDefinition
because I want to pass CancellationToken
, for example:
var result = await conn.ExecuteScalarAsync<string>(new CommandDefinition("sp_CrunchNumbers",
new
{
WarpFactor = 43
},
commandType: CommandType.StoredProcedure,
cancellationToken: cancellationToken));
The analyzer doesn't seem to detect this usage and generate code.
If I change to the overload which takes multiple args then it does generate code, however this doesn't support CancellationToken
.
var result = await conn.ExecuteScalarAsync<string>("sp_CrunchNumbers",
new
{
WarpFactor = 43
},
commandType: CommandType.StoredProcedure);
rmja, goremykin and 0xcedMatthew-Davey, Esurnir, giammin and raphael-zenhaeusern-legicmkjeff, giammin and swimmesberger