You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This example is cited in a section that talks about nullable navigations not needing explicit null checks in the context of LINQ to EF queries, because the null checks are implied by the query rewrite. But the above code is not in that context, and it seems entirely reasonable for any of those optional properties to actually be null (and thus inappropriate to use the ! operator), absent some additional context (such as order being the result of a query that did already verify all those properties).
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
ID: 93c3721a-da23-d9ea-a054-9d786d2ff4d2
Version Independent ID: 6d3b0f96-6642-75e5-93c8-02c23f142ac4
This example is cited in a section that talks about nullable navigations not needing explicit null checks in the context of LINQ to EF queries, because the null checks are implied by the query rewrite. But the above code is not in that context, and it seems entirely reasonable for any of those optional properties to actually be null (and thus inappropriate to use the
!
operator), absent some additional context (such asorder
being the result of a query that did already verify all those properties).Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: