Hello,
Regarding objects in the Context, the manual mentions that:
If an entity is already loaded in the used Context object, the entity data is not added to a new entity object, but the entity object already loaded is updated.
However, when I do something like:
_Context.Add(entityToFetch);
IEntity2 e = GetMoreDetailedVersionOf(entityToFetch)
_Context.Add(e);
e = _Context.Get(e);
EntityToFetch has a m:n collection which is empty. The more detailed version of entityToFetch, called 'e' comes with this collection filled. But when 'e' is added to the context, the collection is not updated in the already-in-the-context-entityToFetch (as I would have expected from the manual line above). It ends up with e being still with an empty collection, although the collection itself is added to the context.
Did I miss something or is this by design?
Thanks, Colin
PS: I am using the Context on the client, after deserialization from a wcf webservice.