Typed collections - adapter

Posts   
 
    
RK
User
Posts: 3
Joined: 25-Nov-2005
# Posted on: 25-Nov-2005 10:27:48   

Hi there

What are the recommendation of using the data in "adapter mode"? Because the lists are untyped you can't get a value using eg a.b.c.d.e.myvalue without lots of casting.

Am I missing something?

After reading some of the post I get the impression that the EntityCollection class in some release soon will be made generic? Is that correct?

Bye R

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 25-Nov-2005 11:07:43   

In v2.0, EntityCollection<T> will be added which is a generic entity collection for adapter on .NET 2.0. Till then, the untyped variant is used. (and the .NET 1.x codebase in LLBLGen Pro v2.0 is also still using the non-generic variant of course). Typed collections have a problem when you want to derive a class from an entity. The untyped variant doesnt.

Frans Bouma | Lead developer LLBLGen Pro