Entity Framework Plus - FutureValue() in a foreach loop
问题 Recently I started using EF+ on our project with great success however sometimes I run into an issue that I have a set of entities for which I need to run a separate query. So if I have a set of 20 customers I need to run 20 queries separately. I wonder if there is way how to avoid this using EF+ FutureValue() somehow in a foreach loop. See this sample code: foreach (var customer in customers) { customer.SomeValue = ctx.SomeDatabaseTable.Where(myCondition).FutureValue(); // this would run 20