Hi Guys,
This was previously working and just started breaking for some reason (database and code for this is unchanged).
The prefetch path element at index 0 in the passed in prefetch path for root entity type 157 is meant for root entity type 160 which isn't a subtype of 157. 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. at SD.LLBLGen.Pro.ORMSupportClasses.PrefetchPathFetcher.ProducePathNodeParameters
var digitalReceipt = new DigitalReceiptEntity(digitalReceiptId);
var prefetch = new PrefetchPath2(EntityType.DigitalReceiptEntity)
{
DigitalReceiptEntity.PrefetchPathDigitalOrder,
DigitalReceiptEntity.PrefetchPathCardTypeCode,
DigitalReceiptEntity.PrefetchPathAcquirersResponseCode,
DigitalReceiptEntity.PrefetchPathTransactionResponseCode
};
Adapter.FetchEntity(digitalReceipt, prefetch);
This correctly maps the relationships - a Receipt links to a Order, Card Type, Response etc.