-
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
GroupBy causes exception #20887
Comments
Test project to reproduce |
Duplicate of #19929 |
@smitpatel Here
Also inserting
before Also there is similar (same) issue posted on StackOverflow - GroupBy with after projection to domain model without .ToList(). I'm not sure if resolving #19929 will resolve this or not, so consider reopening this as a bug. |
|
"GroupBy" may be used or not. It depending on parameters coming to the controller and handles with library DevExtreme. The current workaround is the creation of two methods: with and without group. But I think it is obviously that it should be just ignored without manual handling |
I ran into a very similar issue, and here is a sample app that reproduces it via DevExpress: |
"Group" operation throws error with list preselect. It happends both at anonymous type or created dto.
We have library that handled entities after our select operation to dto by applying its own pagination, group, sort and select, but now group causes error.
I don't see any explanation why it can't be translated to sql and didn't find any same created issues.
Steps to reproduce
Exception
Further technical details
EF Core version: 3.0+ (also tested with 5.0 preview)
Database provider: Npgsql.EntityFrameworkCore.PostgreSQL (also Microsoft.EntityFrameworkCore.InMemory, but another exception)
Target framework: .NET Core 3.1 (also tested with 5.0 preview)
Operating system: Windows 10
IDE: Visual Studio Community 2019 16.5.4, 16.6.6 Preview 6
The text was updated successfully, but these errors were encountered: