dotnet / dotnet/EntityFramework.Docs
No information on deleting, updating
- Dominant language
- Mermaid
- Stars
- 1.7k
- Forks
- 2k
- Avg merge
- 7d 23h
- Merged PRs (30d)
- 16
Description
It would be great if this article explicitly provided information about what happens with a collection of owned entities and deleting or updating the child entities.
For example, if a child owned entity is not present in the collection when the parent entity is saved, is the child entity automatically deleted?
Presumably updates to owned child entities are updated when the parent is updated. And new child entities are added to the database when they are added to the collection.
All these types of scenarios, which when reading the document, the reader must make assumptions about, should be expressly detailed.
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: d02e6748-42e0-000a-4945-42cd05a0b875
* Version Independent ID: e3effbd0-07f2-423d-4032-1722e75adb37
* Content: [Owned Entity Types - EF Core](https://docs.microsoft.com/en-us/ef/core/modeling/owned-entities)
* Content Source: [entity-framework/core/modeling/owned-entities.md](https://github.com/dotnet/EntityFramework.Docs/blob/main/entity-framework/core/modeling/owned-entities.md)
* Product: **entity-framework**
* Technology: **entity-framework-core**
* GitHub Login: @AndriySvyryd
* Microsoft Alias: **avickers**
Contributor guide
Assessment
This issue has not been assessed yet.