Copy of EntityView2

Posts   
 
    
Anthony
User
Posts: 155
Joined: 04-Oct-2006
# Posted on: 29-Apr-2009 02:35:58   

llblgen 2.6,dotnet,vb.net,adapter

How do a make a copy of EntityView2? I can use createview method on an entitycollection

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 29-Apr-2009 06:53:55   

This is an example:

//fetch collection
EntityCollection<CustomerEntity> customers = new EntityCollection<CustomerEntity>();
            new DataAccessAdapter().FetchEntityCollection(customers, null);

// create some view
EntityView2<CustomerEntity> customersView = new EntityView2<CustomerEntity>(customers);

// create another view based on the first one
EntityView2<CustomerEntity> customersView2 = new EntityView2<CustomerEntity>(customersView.RelatedCollection);
David Elizondo | LLBLGen Support Team
Anthony
User
Posts: 155
Joined: 04-Oct-2006
# Posted on: 29-Apr-2009 07:44:35   

thanks..that worked