I want to do something similar to below where I am loading in parallel some related data for each of a collection of already loaded entities:
foreach (var parentThing in ParentThings)
{
Context.Load(Context.GetChildThingForParentQuery(parentThing.Id), op =>
{
parentThing.Child = op.Entities.FirstOrDefault();
}, null);
}
However, it doesn't seem to work. Data is all mixed up in the callback lambda, e.g. parentThing is always the LAST object in the collection and op.Entities always contains only the FIRST child.