Hi,
If I have an entitycollection a, which contains a one to many relationship to enity type b.
I also have a collection of entity b objects on the client side.
Collection of (a) is ca
Collection of (b) is cb.
Is there an easy (generic) way to code inserting element (b) instances from their collection cb into the various collections (a.cb) in each of the entity a instances.
I had a brief look at the relationship object and was planning to use.
MergeCollection(EntityCollection a, IEntityRelation relation, EntityCollection b)
I would then have iterated all the b elements, finding their corresponding entity in a, and adding them to the correct field (collection) in a.
The tricky part is dereferencing or finding that collection in a, the rest can be done reasonably generically.
I have a collection of these things on the client that need to be added correctly to their collections.
Any pointing in the right direction would be appreciated.