LLBL v2 and generics

Posts   
 
    
dan
User
Posts: 17
Joined: 23-Feb-2006
# Posted on: 20-Jul-2006 11:23:14   

Hello

I'm using EntityCollectionNonGeneric for finders, when I fetch related EntityCollections finders return me releated collections as generic, is there anyway i can tell that releated collections must be non generic as well?

mihies avatar
mihies
User
Posts: 800
Joined: 29-Jan-2006
# Posted on: 20-Jul-2006 16:45:30   

dan wrote:

Hello

I'm using EntityCollectionNonGeneric for finders, when I fetch related EntityCollections finders return me releated collections as generic, is there anyway i can tell that releated collections must be non generic as well?

I would say no as entities use generic collections by default. You could modify entity*.template though (not sure how much work it is). Out of curiosity, why are you avoiding generic collections?

dan
User
Posts: 17
Joined: 23-Feb-2006
# Posted on: 23-Jul-2006 15:49:57   

Because my methods rely on reflection, and very dynamic, and I don't know what type of entity collections will I get on compile time

mihies avatar
mihies
User
Posts: 800
Joined: 29-Jan-2006
# Posted on: 23-Jul-2006 20:02:54   

dan wrote:

Because my methods rely on reflection, and very dynamic, and I don't know what type of entity collections will I get on compile time

Isn't IEntityCollection2 (interface implemented by EntityCollection<>) enough for you?