question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How can I get a deleted owned entity from the parent entity?

See original GitHub issue

I 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

image

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ajcvickerscommented, Sep 9, 2022

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.

0reactions
ajcvickerscommented, Sep 9, 2022
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found