daelmo wrote:
Doing your way you might have duplicates in T2Collection. Do you already fetch T1Collection?
If T1 is Order and T2 is Customer, say you need a collection of Customers that already have some order(s), right? If that is the case, you can do something like:
[code]IPredicateExpression filter = new PredicateExpression();
filter.Add(new FieldCompareSetPredicate(
CustomerFields.CustomerID, OrderFields.CustomerID,
SetOperator.In, null));
CustomerCollection customers = new CustomerCollection();
customers.GetMulti(filter);
Indeed, I may have duplicates in T2Collection.
It's not so easy, because my T1Collection results from a complex filtering (adding entries manually after checking criterias). So, using your way, I can't really pick T2 entries from those referenced in T1Collection.
By the way, I'm using LLBLGen Pro 2.0 with .NET 2.0. And yes, my T1Collection is already fetched!
Thanks for your support