efcore
efcore copied to clipboard
How to fix up navigation collection without reloading?
Hello. I have two navigation collections contains common entity inside. Atter I reloaded one of them, other navigation collection sill contains detached entity. I tried to fix it using ChangeTracker.DetectChanges() method, but unsuccessfully. How can I replace new entity in other collection without querying database? RefreshDetachedIssueSample.zip
This looks like a bug. The navigation for the other relationship is still holding on to the detached entity, rather than it being removed.