How do dynamically specify entity type...

Posts   
 
    
Posts: 32
Joined: 01-Oct-2007
# Posted on: 10-Sep-2008 14:38:41   

Hi

In the following function


public IEntityCollection2 GetEntityCollection(EntityType entityType)
        {
            IEntityCollection2 collection = new EntityCollection<PackageEntity>(EntityFactoryFactory.GetFactory(entityType));
            return collection;
        }

how can I replace <PackageEntity> with a type name based on the passed in entityType ?

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 10-Sep-2008 18:58:02   

I think the following thread was discussing the same thing: http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=8939