The collection will hold Entities of their special types.
i.e. the CompanyCar collection will hold entities of Types Company Car, Sports Car...etc according to each entity type.
Yes, this I am aware of this is what happens normally.
In case you want to fetch the collection with only sports cars from the start, then you might filter on the discremenating field.
i.e. the CompanyCar collection will only hold entities of the type you have filtered upon.
However, this is what I have the question about. You are saying I would have to extend the Employee class and add a 'sportscars' collection to it - and in there I would do the filter - right?
If so, how can I filter on the discriminating value easily? LLBLGen already knows what discrimating values go with what objects, so how can I use this information to do a filter without putting SomeField ==3 in a predicate.
In looking through the code, I see something like this:
CreateFilterUsingForeignKeys(orderDetailInstance, imageTypeInstance, fieldsToReturn);
and that is what I want to use where I say 'get me all of this object type' and do not have to put in the actual values. I think the logic is already in place to do that?