From d2f824a0efb67216b145e5d5759e9d2f623a0e82 Mon Sep 17 00:00:00 2001 From: Gordeev Dmitry Date: Mon, 25 Sep 2023 22:41:30 +0700 Subject: [PATCH] [release/7.0] Fix to #31448 Use token for NonQueryResultAsync (#31449) Fixes [#31448](https://github.com/dotnet/efcore/issues/31448) --- .../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 38b9ece05ad..ede5805ad30 100644 --- a/src/EFCore.Relational/Query/RelationalShapedQueryCompilingExpressionVisitor.cs +++ b/src/EFCore.Relational/Query/RelationalShapedQueryCompilingExpressionVisitor.cs @@ -201,7 +201,8 @@ private static Task NonQueryResultAsync( state.commandSource), cancellationToken); }, - null); + null, + relationalQueryContext.CancellationToken); } finally {