Adapter--How to get All Rows from a Table?

Posts   
 
    
mattc58
User
Posts: 7
Joined: 19-Nov-2004
# Posted on: 23-Nov-2004 13:03:59   

Hello All,

Very simple question here--how do you get all rows from a table using the Adapter template?

I've got a table and generated classed called Category. What is the code to use to get all rows of Category as an EntityCollection?

Thanks,

Matt

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 23-Nov-2004 13:18:52   

EntityCollection categories = new EntityCollection(new CategoryEntityFactory()); adapter.FetchEntityCollection(categories, null);

simple_smile Question 1 in the Best practises, how do I? section in the docs wink

Frans Bouma | Lead developer LLBLGen Pro
mattc58
User
Posts: 7
Joined: 19-Nov-2004
# Posted on: 23-Nov-2004 16:53:33   

You have no idea how long I looked for that! flushed I should check the obvious places first...