DapperLib / Dapper

Dapper - a simple object mapper for .Net
https://www.learndapper.com/
Other
17.44k stars 3.67k forks source link

Add CancellationToken optional parameter to all Async methods #1938

Open mcenzato opened 1 year ago

mcenzato commented 1 year ago

I saw that a lot of Dapper async methods (eg. QueryAsync) miss the CancellationToken parameter.

Rendojack commented 11 months ago

You can workaround this by passing CommandDefinition with assigned CancellationToken in most of the simple queries, except more complicates ones, like with multi-mapping.