Equivalent to DataView.RowFilter?

Posts   
 
    
Fred avatar
Fred
User
Posts: 21
Joined: 04-Mar-2005
# Posted on: 13-May-2005 00:09:56   

I often have a situation where I have a filled collection and now I need to retrieve a subset of that collection. In ADO.Net this is easily done by creating a DataView and setting its RowFilter property. I haven't found equivalent functionality in GenPro objects. I realize that I could create a Predicate and do a getMulti with a new collection object, but I want to get the subset from an already filled collection that I have in memory, not do another database hit.

Is there something I've missed that will allow me to do this, short of looping through the collection and examining every entity in it?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39930
Joined: 17-Aug-2003
# Posted on: 13-May-2005 10:02:01   

At the moment looping through the collection is the only option you have, I'm afraid.

Frans Bouma | Lead developer LLBLGen Pro
sami
User
Posts: 93
Joined: 28-Oct-2005
# Posted on: 21-Mar-2006 18:39:38   

Any hopes for getting this functionality?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39930
Joined: 17-Aug-2003
# Posted on: 21-Mar-2006 19:25:08   

sami wrote:

Any hopes for getting this functionality?

The v2 codebase as we have it now (still in development) has this functionalty indeed simple_smile You can specify a filter using normal LLBLGen Pro predicate objects and you can then filter a collection, create an EntityView object and if you want project it on other objects, sort it with sortexpressions etc.

Frans Bouma | Lead developer LLBLGen Pro