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

Add a page for working with nullable reference types in 3.0 #1655

Closed
divega opened this issue Aug 19, 2019 · 1 comment · Fixed by #1709
Closed

Add a page for working with nullable reference types in 3.0 #1655

divega opened this issue Aug 19, 2019 · 1 comment · Fixed by #1709

Comments

@divega
Copy link
Contributor

divega commented Aug 19, 2019

From the discussion at dotnet/efcore#17212, here are a few things we know are affected:

  1. You can now use NRTs to express requiredness (Update page to explain how nullable refererence types are treated in 3.0 #1654)
  2. Defining a DbContext with automatic DbSet<T> properties that EF Core takes care of initializing can lead to possible null exception warnings.
  3. Creating a non-nullable reference type property on an entity can lead to null warnings.
  4. Writing perfectly valid EF Core queries using LINQ can result into null warnings.
  5. Configuring models, in particular using the relationships configuration APIs can lead to null warning.
  6. Note on scaffolding (where we haven't yet done anything). Scaffolding and C# 8 nullable reference types efcore#15520.

For all issues from 2 to 6, we can basically guide customers to add the null-forgiving operator (!) as appropriate (although other adequate patterns may exist for some cases).

@roji, Apparently I didn't have this in the docs backlog (or I am unable to find it). Could you own this?

cc @ajcvickers

@roji
Copy link
Member

roji commented Aug 20, 2019

Yes, will work on a proposal after Wednesday.

@ajcvickers ajcvickers added this to the Backlog milestone Sep 2, 2019
@ajcvickers ajcvickers modified the milestones: Backlog, 3.1.0 Sep 7, 2019
@roji roji modified the milestones: 3.1.0, 3.0.0 Sep 9, 2019
roji added a commit that referenced this issue Sep 9, 2019
roji added a commit that referenced this issue Sep 9, 2019
roji added a commit that referenced this issue Sep 9, 2019
roji added a commit that referenced this issue Sep 9, 2019
roji added a commit that referenced this issue Sep 16, 2019
roji added a commit that referenced this issue Sep 23, 2019
roji added a commit that referenced this issue Sep 23, 2019
roji added a commit that referenced this issue Sep 23, 2019
roji added a commit that referenced this issue Sep 23, 2019
roji added a commit that referenced this issue Sep 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants