-
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: consider expanding null safety beyond nav rewrite #12284
Comments
We do perform some re-writing already to cover some similar cases. We will consider enhancing this for 3.0. |
In the absence of client eval, this may not provide much value. |
Yes, this ticket is about cases where a query is executed partially in SQL and partially in memory. |
Brief answer, we are dropping it for most cases. |
Version:
2.1.1-rtm-30843
(nightly build)Please consider this example:
Entity:
Ensure there are records:
Now, this is a query that is fully translated into SQL:
However, if I modify it as follows:
then it is partially translated into SQL:
but grouping is done in-memory.
It fails with
Nullable object must have a value.
I understand that for LINQ 2 Objects I would have to add null-conditional:
Finally the question:
Should the user of EF Core proactively take care of null safety as with L2O? Or on the contrary it is a bug and EF Core in-memory magic must hide it from me?
The text was updated successfully, but these errors were encountered: