Even if I only add the modified entity to the UOW, basically the whole graph comes along with it because of the relations.
Parent has many children. I send one child entity back, but since it has a reference to its parent, the parent is also serialized and thus the parent's entire list of children comes back to the server.
The UOW operation completes successfully and only the updated entity gets persisted, so functionally it is correct... but I'm looking for a way to avoid sending the other related entities back across the remoting wire, as that takes several seconds when the parent has many children.
Is there a way to have the UOW only serialize the single entity that needs to be updated, without grabbing all its related entities during the serialization process?
For example, should I remove the child entity from it's parent collection before adding it to the UOW? (I guess I would need to disable the deleted entity tracking, then I would have to re-add it after committing the uow...)
Thanks!