Create collection of entities w/o table like entitycolbase

Posts   
 
    
tvoss avatar
tvoss
User
Posts: 192
Joined: 07-Dec-2003
# Posted on: 24-Mar-2005 18:04:35   

Can you advise me a simple way to get functionality somewhat like entitycollectionbase?

I want to create a class of entities and then define a class for collecting them as you do with the generation from a table, but without the table.

I looked at entitycollectionbase, but it looked too complex to model.

Would ArrayList work for Web datagrid binding and it has the add method, remove, etc. That seems close, but is there a better path to go down?

Thanks

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 24-Mar-2005 21:10:04   

Please have a look at the article I wrote on ITypedList: http://weblogs.asp.net/fbouma/articles/115837.aspx

it contains example code based on the arraylist which will give you rich databinding features. For the rest, indeed just use an arraylist, it's sufficient for what you want to do I think.

Frans Bouma | Lead developer LLBLGen Pro