I'm a newcomer and I'm working through the examples in "Generated code - Prefetch paths, Adapter". I worked out how to retrieve Northwind orderdetails using subpath. But I want to retrieve the productname from Products as well. Is this possible with subpath and could you give me example code like below?
EntityCollection<CustomerEntity> customers = new EntityCollection<CustomerEntity>();
PrefetchPath2 prefetchPath = new PrefetchPath2(EntityType.CustomerEntity);
prefetchPath.Add(CustomerEntity.PrefetchPathOrders).SubPath.Add(OrderEntity.PrefetchPathOrderDetails);
prefetchPath.Add(CustomerEntity.PrefetchPathOrders).SubPath.Add(OrderDetailEntity.PrefetchPathProduct); // <-- not working
Off topic: VisitingAddress is not part of the Northwind database I have.