-
-
Notifications
You must be signed in to change notification settings - Fork 231
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
Group by multiple columns? #31
Comments
Should be indeed something like: |
I was doing tests with Elements in memory and It works! I'm gonna report it to EntityFramework Core team. Great job! |
Which version from EntityFramework Core do you use? |
1.0.0 Final version. |
The tests in your example project looks valid? I'll check what's happening. |
There are no message error, but the query database result is wrong. It should be four groups instead of ten.
Thank you! |
The "resultDb2" is indeed wrong, but I wonder if this is a problem with 'EntityFramework Core', it looks more an issue for System.Linq.Dynamic.Core ? |
I'm not sure where the problem is, sorry. Would be great if you could check your extension method! |
I'll take a look. |
For the old (6.1.3) EF, it works fine. (I did add a test project) |
And update to Microsoft.EntityFrameworkCore 1.0.1 Linked to #31
@jotab123 I tested with EF Core 1.0.1 and it still does not work, even introduced other issue, see |
it's fixed in ef now so can be closed? |
It's fixed in the 1.1 preview version. I made a new branch in this project to test it. However, best to keep this issue open until the final EF Core 1.1 is published. |
Tested successfully for 1.1 preview. |
Great! |
|
Hi!
I'm working on group by queries on sqlserver. I'm trying to create groups with multiple columns dynamically and I don't know how I can do it.
Example:
Model
Queries
I need this query result:
db.Element.GroupBy(el => new { el.Attribute1, el.Attribute2 })
Dynamically:
db.Element.GroupBy("new(Attribute1, Attribute2)")...?
Is it possible?
Thank you very much!
The text was updated successfully, but these errors were encountered: