dotnet / EntityFramework.Docs

Documentation for Entity Framework Core and Entity Framework 6
https://docs.microsoft.com/ef/
Creative Commons Attribution 4.0 International
1.62k stars 1.96k forks source link

Note that all null owned types are also returned as null #3275

Open lukashaertel opened 3 years ago

lukashaertel commented 3 years ago

Owned Types where all fields are null are returned as null on their respective owners. If this is the desired semantic of all null values, this should be marked somewhere to prevent confusion.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

AndriySvyryd commented 3 years ago

This is described on https://docs.microsoft.com/en-us/ef/core/modeling/table-splitting#optional-dependent-entity

We could link to this from the owned type page