With an entity framework, you can do something similar to load objects for multiple request links.
var Customer = context.Customers.Include(x=>x.Orders.Select(y=>y.Items));
It doesn't seem like I can do the same with the LoadProperty method. When I already have an object and I need to load some reference data, I use LoadProperty.
context.LoadProperty(Customer, x=>x.Orders);
It works. But it causes an error.
context.LoadProperty(Customer, x=>x.Orders.Select(y=>y.Items));
And that too ...
context.LoadProperty(Customer.Orders, x=>x.Items);
This is an exception for both cases ...
The selector expression for LoadProperty must be MemberAccess for the property.
Bzink source share