Hello,
I got this strange behavior.
I need to get a list of contacts.
Every contact has an adres, and every adres has a country entity.
contact --> Adres --> Country
--> Language
Now this is my PrefetchPath2 but i get an error.
var path = new PrefetchPath2((int)EntityType.ContactenEntity)
{
ContactenEntity.PrefetchPathTalen,
ContactenEntity.PrefetchPathAdressen.SubPath.Add(AdressenEntity.PrefetchPathLanden)
};
The prefetch path element at index 1 in the passed in prefetch path for root entity type 4 is meant for root entity type 0 which isn't a subtype of 4. This means that you've added a prefetch path node to a Path of an unrelated entity, for example adding OrderDetailsEntity.PrefetchPathProduct to a prefetch path for CustomerEntity.
And there relations exist where they need to be.
Can someone tell me what is wrong ?
is this the correct way to do it ?
Kris