-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query: Translate LINQ GroupBy to SQL GROUP BY where possible #12476
Comments
@smitpatel to de-dupe. |
Easy work-around is to use anonymous type for key selector instead of scalar property like that. |
Currently this does not get translated because we don't process keys other than EF property methods. We can remove that restrictions. |
@smitpatel Ok, I got it. Pretty nice workaround. Thank you.
But if:
It's much harder. |
@MarS0K - That is true hence issue is still open. This is some enhancement which we would make in future release. I gave work-around till this is fixed in public release. |
I want to group some entities by uppercase string property. But:
Query:
Am I wrong?
Steps to reproduce
Model:
Generated SQL (if needed):
Expected SQL (something like that):
Further technical details
EF Core version: Microsoft.EntityFrameworkCore 2.1.0
Database Provider: Microsoft.EntityFrameworkCore.Sqlite
The text was updated successfully, but these errors were encountered: