How can I get a deleted owned entity from the parent entity?
See original GitHub issueI need to traverse entities graph; both its versions: before and after the changes.
In case property holds an owned entity, and this property is set to null
, owned entity is marked as deleted, but EntityEntry for the parent entity does not contain any reference to deleted entity.
Parent entity has Unchanged
status, and corresponding navigation property has IsModified = false
as well.
I think this can also be related to this issue
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Get ID of all deleted entities when parent is removed?
Get ID of all deleted entities when parent is removed? · Use something in the lines of this: List<Entity> entities = repository.findAll(). ·...
Read more >Owned Entity Types - EF Core
How to configure owned entity types or aggregates when using Entity Framework Core.
Read more >Question - Entity that leaves a trail even after being deleted
I have the following setup: - A bullet prefab with attached particle system - The bullet is converted to entity via the ...
Read more >Cloud Control Administrator's Guide
From the Move Entity dialog box, select the destination folder for the entities and click Set New Parent Folder. Note: Ensure that the...
Read more >Entity Reference Delete
The Entity Reference Delete module allows reference fields to enforce referential integrity by deleting related entities.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I don’t think there is any easy way to do this. You’ll probably need to use FK original values, assuming you have original values available, and then use the metadata model to manually connect up previously associated entities.
Materialization interception? https://devblogs.microsoft.com/dotnet/announcing-ef7-preview7-entity-framework/