Skip to content

Commit 8a92f5c

Browse files
authored
InMemory: Skip over AsSingleQuery method (#23818)
Resolves #23759
1 parent a37330f commit 8a92f5c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/EFCore.InMemory/Query/Internal/InMemoryQueryableMethodTranslatingExpressionVisitor.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ protected override Expression VisitMethodCall(MethodCallExpression methodCallExp
8383
if (methodCallExpression.Method.IsGenericMethod
8484
&& methodCallExpression.Arguments.Count == 1
8585
&& methodCallExpression.Arguments[0].Type.TryGetSequenceType() != null
86-
&& string.Equals(methodCallExpression.Method.Name, "AsSplitQuery", StringComparison.Ordinal))
86+
&& (string.Equals(methodCallExpression.Method.Name, "AsSplitQuery", StringComparison.Ordinal)
87+
|| string.Equals(methodCallExpression.Method.Name, "AsSingleQuery", StringComparison.Ordinal)))
8788
{
8889
return Visit(methodCallExpression.Arguments[0]);
8990
}

0 commit comments

Comments
 (0)