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

Fully implement element nullability for primitive collections #31468

Merged

Conversation

roji
Copy link
Member

@roji roji commented Aug 15, 2023

  • Update NonNullableReferencePropertyConvention to detect non-nullable reference types for the element CLR type of primitive collection, and to apply that to EF's element metadata.
  • In the query pipeline, properly extract element nullability from metadata and create the correct column nullability when translating primitive collections.

Closes #31416

/cc @danmoseley

@roji roji requested a review from ajcvickers August 15, 2023 09:19
@roji roji changed the base branch from main to release/8.0-rc1 August 15, 2023 09:19
@roji roji force-pushed the PrimitiveCollectionElementNullability branch 2 times, most recently from b8d45af to bf0abd1 Compare August 15, 2023 13:35
Copy link
Contributor

@ajcvickers ajcvickers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐑 🇮🇹

@roji roji force-pushed the PrimitiveCollectionElementNullability branch from bf0abd1 to 0c57357 Compare August 15, 2023 16:58
@roji
Copy link
Member Author

roji commented Aug 15, 2023

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@roji roji merged commit 4758685 into dotnet:release/8.0-rc1 Aug 15, 2023
@roji roji deleted the PrimitiveCollectionElementNullability branch August 15, 2023 19:35
Tratcher pushed a commit that referenced this pull request Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NRT metadata is not used for element type nullability
2 participants