dotnet / dotnet/EntityFramework.Docs
Document that required columns are created nullable when table splitting
Open
area-aggregates
area-migrations
- Dominant language
- Mermaid
- Stars
- 1.7k
- Forks
- 2k
- Avg merge
- 7d 23h
- Merged PRs (30d)
- 16
Description
See https://github.com/dotnet/efcore/issues/27516
The issue here is that our guidance is to introduce a required property in optional dependents. However, when table splitting, which is the default for owned types, Migrations will create a nullable column with a null default for this property. This makes all existing dependents effectively disappear. We need to document that the existing rows need to be populated with a non-null value so that they are detected as existing.
Contributor guide
Assessment
This issue has not been assessed yet.