diff --git a/src/EFCore.Relational/Query/RelationalShapedQueryCompilingExpressionVisitor.ShaperProcessingExpressionVisitor.cs b/src/EFCore.Relational/Query/RelationalShapedQueryCompilingExpressionVisitor.ShaperProcessingExpressionVisitor.cs index 314f2e75471..a67cdf1c8f2 100644 --- a/src/EFCore.Relational/Query/RelationalShapedQueryCompilingExpressionVisitor.ShaperProcessingExpressionVisitor.cs +++ b/src/EFCore.Relational/Query/RelationalShapedQueryCompilingExpressionVisitor.ShaperProcessingExpressionVisitor.cs @@ -1482,10 +1482,11 @@ private static async Task PopulateSplitIncludeCollectionAsync InitializeReaderAsync(tup.Item1, tup.Item2, tup.Item3, cancellationToken), - verifySucceeded: null) + verifySucceeded: null, + queryContext.CancellationToken) .ConfigureAwait(false); - async Task InitializeReaderAsync( + static async Task InitializeReaderAsync( RelationalQueryContext queryContext, RelationalCommandCache relationalCommandCache, bool detailedErrorsEnabled, @@ -1801,10 +1802,11 @@ private static async Task PopulateSplitCollectionAsync InitializeReaderAsync(tup.Item1, tup.Item2, tup.Item3, cancellationToken), - verifySucceeded: null) + verifySucceeded: null, + queryContext.CancellationToken) .ConfigureAwait(false); - async Task InitializeReaderAsync( + static async Task InitializeReaderAsync( RelationalQueryContext queryContext, RelationalCommandCache relationalCommandCache, bool detailedErrorsEnabled,