Skip to content

Commit

Permalink
Query: Remove the requirement that instance or first argument would b…
Browse files Browse the repository at this point in the history
…e enumerable in aggregate function (#28099)

Feedback on #28092
  • Loading branch information
smitpatel committed May 25, 2022
1 parent 97783f5 commit 4cb70fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -943,8 +943,7 @@ protected override Expression VisitMethodCall(MethodCallExpression methodCallExp
{
var argument = arguments[i];
var visitedArgument = Visit(argument);
if (i == 0
&& visitedArgument is EnumerableExpression)
if (visitedArgument is EnumerableExpression)
{
if (enumerableExpression != null)
{
Expand Down
6 changes: 2 additions & 4 deletions src/EFCore/Query/ICompiledQueryCacheKeyGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ namespace Microsoft.EntityFrameworkCore.Query;

/// <summary>
/// <para>
/// Creates keys that uniquely identifies a query. This is used to store and lookup
/// compiled versions of a query in a cache.
/// Creates keys that uniquely identifies a query. This is used to store and lookup compiled versions of a query in a cache.
/// </para>
/// <para>
/// This type is typically used by database providers (and other extensions). It is generally
/// not used in application code.
/// This type is typically used by database providers (and other extensions). It is generally not used in application code.
/// </para>
/// </summary>
/// <remarks>
Expand Down

0 comments on commit 4cb70fd

Please sign in to comment.