convert EntityCollectionNonGeneric to EntityCollection

Posts   
 
    
omar avatar
omar
User
Posts: 569
Joined: 15-Oct-2004
# Posted on: 20-Mar-2007 15:01:33   

In a LIB project, I wanted to create a utility function that needs to create an EntiyCollection.

Since this LIB DLL does not reference the DAL, I created an instance of EntityCollectionNonGeneric (I do have the EntityFactoryToUse in this function).

The problem arises in the UI when I need to convert the EntityCollectionNonGeneric to EntityCollection as that is rejected by LLBL.

Is there away to do this or is there a better way to create and populate EntityCollections in LIB style projects having only an instance of the EntityFactoryToUse?

Aurelien avatar
Aurelien
Support Team
Posts: 162
Joined: 28-Jun-2006
# Posted on: 20-Mar-2007 15:55:31   

Hi,

Can you be more explicit on why and when you need to convert EntityCollectionNonGeneric to EntityCollection and how it is rejected by LLBL.

Regards,

Aurélien

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 21-Mar-2007 10:01:43   

How is it rejected by llblgen, could you elaborate on that abit? After all, EntityCollection(Of T) and EntityCollectionNonGeneric share the same interface and base class.

Frans Bouma | Lead developer LLBLGen Pro