Hi,
Is it possible to prefetch collections mapped on fields of inherited entities (in case it is of the inherited type) with something similar to a cast?
I imagine it would look something like to this:
IQueryable<BaseEntity> baseEntities =
linqMeta.Base
.WithPath( pf => pf
.Prefetch<BaseRelatedEntity>(baseEntity => baseEntity.BaseRelatedEntities)
.Prefetch<InheritedRelatedEntity>(inheritedEntity => ((InheritedEntity)inheritedEntity).InheritedRelatedEntities)
)
Any ideas?
Thank you in advance,
Wiebe Tijsma