Skip to content
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

InMemory: Server side null safety does not work always #21680

Closed
smitpatel opened this issue Jul 18, 2020 · 1 comment
Closed

InMemory: Server side null safety does not work always #21680

smitpatel opened this issue Jul 18, 2020 · 1 comment

Comments

@smitpatel
Copy link
Member

            var actual = context.Set<DateTimeEnclosure>()
                .Select(e => new { DT = e.DateTimeOffset == null ? (DateTime?)null : e.DateTimeOffset.Value.DateTime.Date }).ToList();

We translate the whole thing to server side but we do .Value over Nullable<DateTimeOffset> which throws with null value.

Test: Optional_datetime_reading_null_from_database

@smitpatel
Copy link
Member Author

Closing this as by design.
InMemory server side throws more exception than other providers because it can. This is a case where InMemory server side does throw an exception and we cannot change the behavior trivially. If there is real customer issue arising from this behavior then we will look into it.

@smitpatel smitpatel removed their assignment Jul 20, 2020
ghost pushed a commit that referenced this issue Jul 20, 2020
@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants