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

Fix to #33004 - Unfulfillable nullable contraints are set for complex types with TPH entities #33052

Merged
merged 1 commit into from
Feb 10, 2024

Conversation

maumar
Copy link
Contributor

@maumar maumar commented Feb 10, 2024

When figuring out nullability of columns representing a given property, if property is declared on derived entity in TPH, we make that column nullable. For complex type properties we should be doing the same (and we did), but declaring type of that property is the complex type itself. Instead we should look at the ContainingEntityType rather than just DeclaringType.

Fixes #33004

… types with TPH entities

When figuring out nullability of columns representing a given property, if property is declared on derived entity in TPH, we make that column nullable. For complex type properties we should be doing the same (and we did), but declaring type of that property is the complex type itself. Instead we should look at the ContainingEntityType rather than just DeclaringType.

Fixes #33004
@maumar maumar merged commit 4a1e206 into main Feb 10, 2024
7 checks passed
@maumar maumar deleted the fix33004 branch February 10, 2024 23:03
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.

Unfulfillable nullable contraints are set for complex types with TPH entities
2 participants