Hi,
I would like to implement a convenience functionality in my GUI that saves all the dirty objects of the primary entitycollection as well as all of the dirtyentities of contained entitycollections.
For example, let's say EntityCollection ec1 contains object ec11 of class type Entity1.
Class Entity1 has an EntityCollection member ec2 of class type Entity2.
when I do:
DataAccessAdapter da = new DataAccessAdapter();
da.SaveEntity(ec11, false, true);
I'd like to not only save ec11 but also all dirty entities of ec11.ec2.
Is there any way to actually find all the dirty entities of a refrenced entitycollections?
This way I can create a method that can return all master entities (that are dirty or contain collections with dirty entities) and call the SaveEntityCollection method with the recurse=true parameter.
If I use the SaveEntityCollection on the full collection(which potentially has thousands of entries) I will have added significant unnecessary burden on the serialization layer (of my tiers)...
Thanks