From e6291bf34261523a18c7f221e98f08508a9b710d Mon Sep 17 00:00:00 2001 From: Shay Rojansky Date: Tue, 21 Nov 2023 21:25:14 +0100 Subject: [PATCH] [release/7.0] Fix to #31448 Use token for NonQueryResultAsync (#31449) (#32334) Fixes #31448 (cherry picked from commit d2f824a0efb67216b145e5d5759e9d2f623a0e82) Co-authored-by: Gordeev Dmitry --- .../Query/RelationalShapedQueryCompilingExpressionVisitor.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/EFCore.Relational/Query/RelationalShapedQueryCompilingExpressionVisitor.cs b/src/EFCore.Relational/Query/RelationalShapedQueryCompilingExpressionVisitor.cs index e623a1e92e7..a41535e943a 100644 --- a/src/EFCore.Relational/Query/RelationalShapedQueryCompilingExpressionVisitor.cs +++ b/src/EFCore.Relational/Query/RelationalShapedQueryCompilingExpressionVisitor.cs @@ -200,7 +200,8 @@ private static Task NonQueryResultAsync( state.commandSource), cancellationToken); }, - null); + null, + relationalQueryContext.CancellationToken); } finally {