I\'m using Dapper 1.31 from Nuget. I have this very simple code snippet,
string connString = \"\";
string query = \"\";
int val = 0;
CancellationTokenSource
You can fix SqlMapper.cs in Dapper lib by adding these lines:
internal IDbCommand SetupCommand(IDbConnection cnn, Action paramReader)
{
var cmd = cnn.CreateCommand();
#if ASYNC
// We will cancel our IDbCommand
CancellationToken.Register(() => cmd.Cancel());
#endif
Rebuild your own Dapper lib and enjoy :)