Object
ID
OwnerID->Related To Object.ID
Cat: Object
Dog: Object
Deer: Object
Person: Object
let's say I want to get all objects that have the ownerid of the person but I dont want to left join every single object to do it. I just want the object entity. I don't want it to be polymorphic
Dim lCollection as new EntityCollection(Of PersonEntity)
Dim lPath as new PrefetchPath2(EntityType.PersonEntity)
lPath.add(PersonEntity.PrefetchPathOwnedBy)
adapter.FetchEntityCollection(lCollection, PrefetchPath2)
or even
Dim lCollection as NEw EntityCollection(of objectentity)
Dim lBucket as new relationpredicatebucket
lBucket.PredicateExpression.Add(ObjectFields.OwnerMainId = 72)
adapter.FetchEntityCollection(lCollection, lBucket)