How to Convert Collection to Dataset on one go

Posts   
 
    
Elerocean
User
Posts: 2
Joined: 18-Apr-2008
# Posted on: 18-Apr-2008 16:06:18   

Dear All,

I would like to convert collection to datatable without looping.Now I am creating each row and adding row to datatable.It is taking around 20secs to loop through for 200 records.

Is there any method to convert without looping?

I m working in LLBLGen Pro ver 2.5.7.1219

Thanks, Eler

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 18-Apr-2008 17:48:36   

Please check Projecting data inside an EntityView2 on another data-structure In the manual's section "Using the generated code -> Adapter/SelfServicing -> Using the EntityView2 class"

There is an example on: Projection to datatable

Elerocean
User
Posts: 2
Joined: 18-Apr-2008
# Posted on: 22-Apr-2008 07:44:35   

Thanks walaa