-
Notifications
You must be signed in to change notification settings - Fork 473
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
PoC for EF Core 5 (and may be 3.1) support #2179
base: master
Are you sure you want to change the base?
Conversation
Yes, that is true. EF Core at present only expands navigations upto KeySelector or whatever is in GroupBy call. Any navigation used further is not expanded yet. (difficulty is that navigation needs to be expanded before applying GroupBy even in expression tree). Work-around would be to expand the navigation before calling GroupBy manually. |
That helped. We already had flattening to solve some EF6 issues. I extended it for that case too I replaced
by
It's solved almost all test. I'm seeing an issue with implementing count distinct. Linq looks like:
Exception is:
Is it something that I could do to solve that. |
@kosinsky - That would be being tracked by dotnet/efcore#17376 |
That helped and I managed to make all tests green. However, I noticed that we had no test coverage EF Core for aggregation on nested collections. We are generating something like:
and getting exception:
Is |
That is nested GroupBy. Even if inner GroupBy can be translated, outer GroupBy may not work since outer GroupBy results are still in the form of |
Are there any plans to merge this? I've tested the old 7.4.1 nightly build that includes this, and it fixed the problem I'm having. |
Unfortunately, I'm not working on projects that involve OData and don't have spare cycles to continue that work. If you wold like to fork that PR and continue the work, please do. |
Trying to solve $apply for EF Core 5 (and 3.1 if possible).
I've updated EF Core to 5 Preview 4 in .NET 3 E2E test it caused. After that 2 x (26 of 34) started to fail
Most of that was caused by casting to IEnumerable in expressions like
Exception:
I think that was attempt to use client eval.
I modified optimization made for EF 2.2 (47756e0) and changed expression to
After that change only 9 tests are failing.
All failing tests are using navigation properties in following way:
$apply=aggregate(Order/Price with sum as Result)
that translates to following Linq expression:that causes following error:
Looks like EF has a problem to deal with
$it => $it.Order.Price
cc @xuzhg @smitpatel