Prefetch Path

Posts   
 
    
Bola
User
Posts: 14
Joined: 10-Jun-2005
# Posted on: 08-Feb-2006 16:10:04   

Llblgen doesn't allow me to make a Prefetch Path between 2 fields with different types: varchar2(6) and varchar2(400)

Then, is there any help in generated code to make this prefetch path?

Thanks!

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 09-Feb-2006 06:21:15   

You could try to manually setup the PrefetchPathElement object, with a manual entityrelation object, like done in the generated code. Here is the constructor of the PrefetchPathElement

public PrefetchPathElement(
   IEntityCollection retrievalCollection,
   IEntityRelation relation,
   int destinationEntityType,
   int toFetchEntityType,
   int maxAmountOfItemsToReturn,
   ISortExpression sorter,
   IPredicateExpression filter,
   IRelationCollection filterRelations,
   string propertyName,
   RelationType typeOfRelation
);

Though it's not said it will work, as values for PK and FK have to be EQUAL to make a match between parent and child.