-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Separate column default constraints from EF store-generated values #13224
Milestone
Comments
Related to #701 |
Notes from planning:
|
ajcvickers
added a commit
that referenced
this issue
Apr 25, 2023
…as not been set Fixes #701 Part of #13224, #15070, #13613 This PR contains the underlying model and change tracking changes needed to support sentinel values. Future PRs will add model building API surface and setting the sentinel automatically based on the database default. There is a breaking change here: explicitly setting the value of a property with a temporary value no longer automatically makes the value non temporary.
ajcvickers
added a commit
that referenced
this issue
Apr 28, 2023
…as not been set Fixes #701 Part of #13224, #15070, #13613 This PR contains the underlying model and change tracking changes needed to support sentinel values. Future PRs will add model building API surface and setting the sentinel automatically based on the database default. There is a breaking change here: explicitly setting the value of a property with a temporary value no longer automatically makes the value non temporary.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue #9627 talked about the different possible reasons for having columns with default constraints. We discussed this some more and decided to look at adding more separation of these concepts in the 3.0 timeframe. This would make it easier to specify that a column has a default constraint without that meaning that EF should use a sentinel value to decide whether or not to include a value for the column.
The text was updated successfully, but these errors were encountered: