How do you filter Target-per-entity Hierarchys by type?

Posts   
 
    
Posts: 112
Joined: 09-Aug-2004
# Posted on: 18-Jun-2009 21:07:48   

LLBLGen Version: 2.6 Final (April 15th 2009)

Using this as an example, (how do I post a link to the llblgen screen shots page?)

Lets say this hierarchy was extended so that in addition to clerk and manager, you also had a receptionist and executive (with FK to CompanyCar).

How would you construct a query to fetch all Clerks and Executives (ignoring Managers, Receptionists and Board Members) while also Prefetching Company Car and Filtering on a field in the CompanyCar table?

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 19-Jun-2009 04:35:15   
David Elizondo | LLBLGen Support Team
Posts: 112
Joined: 09-Aug-2004
# Posted on: 19-Jun-2009 15:57:53   

Thanks for the link. In addition to that, I realized you need to set the join hint to left for the sub types as well as the sub types relationships (I missed that part).