In memory query of a Collection

Posts   
 
    
ianvink
User
Posts: 394
Joined: 15-Dec-2006
# Posted on: 26-Feb-2007 21:11:58   

C# , newest version, 2.0

I have a collection of Orders for each person.

person.OrdersCollection;

This is in memory now. I now need to get the Order where the Order.IsDone == true

I'd rather not go back to the DB with a predicate.

Is there a way to do that without looping through the OrdersCollection?

Ian

JimHugh
User
Posts: 191
Joined: 16-Nov-2005
# Posted on: 26-Feb-2007 23:52:37   

Search for FindMatches in the online help and read topic "Finding entities inside a fetched entity collection".

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 27-Feb-2007 07:22:40   

EntityViews simple_smile Check the LLBLGen Pro manual: Using the generated code -> Adapter/SelfServicing -> Using the EntityViews with Entity Collections