You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can workaround this by passing CommandDefinition with assigned CancellationToken in most of the simple queries, except more complicates ones, like with multi-mapping.
itcotta
added a commit
to itcotta/Dapper
that referenced
this issue
Dec 30, 2024
This change introduces a CancellationToken parameter to the QueryAsync method, enabling support for cooperative cancellation of asynchronous database queries. The modification ensures better resilience and control over long-running or potentially cancelable operations.
This fixes issues DapperLib#2125 and DapperLib#1938.
A friendly reminder for this. Especially for multi-mapping and a simpler implementation without the need for CommandDefinition. Just add an optional parameter to the basic Query methods. Thank you!
I saw that a lot of Dapper async methods (eg. QueryAsync) miss the CancellationToken parameter.
The text was updated successfully, but these errors were encountered: