I mentioned above that the order the entities are added to EntityEntryContext was important, so we needed to maintain immutable {{ManagedEntity previous/next} references. I don't think that's actually true. It is the order of actions that matters. Steve Ebersole, can you confirm this? If there's no need to maintain the order of the ManagedEntity objects, then there's no need to maintain the immutable ManagedEntity objects in the EntityEntryContext linked list; they could be maintained separately. In that case, we wouldn't need to have ManagedEntityWrapper, unless it helped us deal with having a separate EntityEntry for deleting an immutable ManagedEntity. |