Skip to content

Commit

Permalink
InMemory: Skip over AsSingleQuery method (#23818)
Browse files Browse the repository at this point in the history
Resolves #23759
  • Loading branch information
smitpatel authored Jan 13, 2021
1 parent a37330f commit 8a92f5c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ protected override Expression VisitMethodCall(MethodCallExpression methodCallExp
if (methodCallExpression.Method.IsGenericMethod
&& methodCallExpression.Arguments.Count == 1
&& methodCallExpression.Arguments[0].Type.TryGetSequenceType() != null
&& string.Equals(methodCallExpression.Method.Name, "AsSplitQuery", StringComparison.Ordinal))
&& (string.Equals(methodCallExpression.Method.Name, "AsSplitQuery", StringComparison.Ordinal)
|| string.Equals(methodCallExpression.Method.Name, "AsSingleQuery", StringComparison.Ordinal)))
{
return Visit(methodCallExpression.Arguments[0]);
}
Expand Down

0 comments on commit 8a92f5c

Please sign in to comment.