-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Migrations: CHECK Required Columns on TPH Derived Types #2595
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Milestone
Comments
Clearing milestone to determine whether we want this to be in EF Core or in EFCore.CheckConstraints (efcore/EFCore.CheckConstraints#6) |
Also useful for optional dependents using table splitting |
63 tasks
A Stack Overflow question about this: EF Core saves null value of required property |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
For required properties on derived types, we could add a
CHECK
constraint to ensure it'sNOT NULL
when the discriminator is one that type or one of it's derived types.The text was updated successfully, but these errors were encountered: