It would be great if we could create a child entitymanager from an existing entitymanager. A child would be able to see (and update) its parents already loaded entities. An entity would stay unique in a complete entitymanager hierarchy.
AcceptChanges()/RejectChanges() would only occurs on a top>down basis against this hierarchy.
With this, I could start a use case with its own entityManager but having already some "reference data" entities in cache.
I can do that using :
DXGridServerModeDBEntities
_ctx = new DXGridServerModeDBEntities();
_ctx.CacheStateManager.RestoreCacheState(_refDataCtx.CacheStateManager.GetCacheState());
but "reference data" entities are duplicated.
Do you think entitymanager hierarchy is a good idea ?