-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Milestone
Description
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?