Skip to content

Make EntityEntryGraphIterator publicly usable #26461

@voroninp

Description

@voroninp

Currently EntityEntryGraphNode constructor is internal and depends on internal types.


I want to automatically change concurrency token of an aggregate root when any of its entities changes.
It's is possible that AR entity has no changes, but child entities do. So I'd like to traverse the graph and check whether there are modified, added, or deleted entities. And if yes, Version property should be incremented.

There's is a TrackGraph method to adjust tracking for disconnected entities, but I want to traverse already attached graph. Do I have to write this functionality myself using EntityEntry api for accessing navigations?

I am also curious how I detect additions and removals of child entities? Is NavigationEntry.IsModified enough for this?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions