efcore
efcore copied to clipboard
Remove DISTINCT inside MIN/MAX operations
When a value in a query computed as a MAX or MIN of a subquery, DISTINCT has no effect and can be removed.
Conceptually this is a continuation of https://github.com/dotnet/efcore/issues/31016