netLearner wrote:
Is it possible to Prefetch multiple tree graphs:
For ex:
If i have CustId = 1 and 2 and i would like to prefetch
all the orders and all details of the above Ids at 1 time.
Thanks.
Yes. Just specify a Prefetch path starting with customer, then add the order node to the subpath and the order details to that node's subpath. You can also fetch multiple branched trees.
IPrefetchPath path = new PrefetchPath((int)EntityType.CustomerEntity);
path.Add(CustomerEntity.PrefetchPathOrders).SubPath.Add(OrderEntity.PrefetchPathOrderDetails);