CancellationToken with async Dapper methods?

前端 未结 4 1694
不思量自难忘°
不思量自难忘° 2020-12-28 12:56

I\'m using Dapper 1.31 from Nuget. I have this very simple code snippet,

string connString = \"\";
string query = \"\";
int val = 0;
CancellationTokenSource          


        
4条回答
  •  一个人的身影
    2020-12-28 13:41

    I was using one SqlConnection for multiple threads. And then when I changed it so that each Thread created it's own SqlConnection the error disappeared.

提交回复
热议问题