ryanroberts wrote:
Is it possible to set up a prefetch path for adapter that can span more than one relation(unless its m:n)?
Lets say I have 3 tables, contact , address and an area lookup (related m:1 and 1:n). I can set up a prefetch to retrieve address entities for each contact simply enough, but would like to avoid having to iterate over the addresses fetching the lookup tables. Being able to do this would be useful in lots of cicumstances - especialy for report datasets where I need to fetch a complete graph 'just in case'.
Ryan
You can setup ANY graph using prefetch paths.
I'll illustrate adapter here, selfservicing uses the variants with the '2'
PrefetchPath2 path = new PrefetchPath2((int)EntityType.ContactEntity);
path.Add(ContactEntity.PrefetchPathAddress).SubPath.Add(AddressEntity.PrefetchPathAreaLookup);
et voila