Accessing Data from Entity Collection

Posts   
 
    
GradDev
User
Posts: 1
Joined: 21-Apr-2008
# Posted on: 21-Apr-2008 11:35:25   

Hi All

I am a newbie in interfacing with Data Access Layer using LLBLGen Pro, so I hope someone answer my questions to get me out of the cloud i am in. I want to access data that is returned in the entity collection object using GetMulti() Method. How can i retrieve this data and iterate on it to fill something like a listView ? or there is other easy way to fill listView with data in the Entity collection object without the need of iterating on all data returned.

I hope that my question is clear, any help will be greatly appreciated.

Thanks in Advance.

goose avatar
goose
User
Posts: 392
Joined: 06-Aug-2007
# Posted on: 21-Apr-2008 17:36:09   

Hi GradDev,

As far as I know, ListView controls are not bindables by default. So you have to add/remove them manually. This is how you can iterate trhough your collection:

employees.GetMulti(null);

foreach (EmployeeEntity e in employees)
{
    // so something with 'e'
}