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
The page has the following excerpt regarding NRTs:
This feature is disabled by default, and affects EF Core's behavior in the following way:
The truth is that in .NET 6. NRTs are enabled by default, making that sentence false.
Addtional excerpts that should be changed:
If nullable reference types are disabled (the default)
The following example shows an entity type with required and optional properties, with the nullable reference feature disabled (the default) and enabled:
Please let me know if you want me to create a PR with appropriate changes.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: a4381838-81bb-52c6-d921-f8b9ae8163d2
Version Independent ID: 892a8dd8-7a63-ce0b-de20-27e92b88f971
The truth is that in .NET 6. NRTs are enabled by default, making that sentence false.
AFAIK you still have to opt into NRTs by setting <Nullable>enable</Nullable> in your csproj. The project templates have been modified to do that, but with existing csproj files that don't contain the property, NRTs stay disabled. We could still amend the text to be clearer.
The page has the following excerpt regarding NRTs:
The truth is that in .NET 6. NRTs are enabled by default, making that sentence false.
Addtional excerpts that should be changed:
Please let me know if you want me to create a PR with appropriate changes.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: