ObjectDataSource implementation

Posts   
 
    
Anthony
User
Posts: 155
Joined: 04-Oct-2006
# Posted on: 17-Nov-2010 14:46:01   

llblgen ,adapter,vs2008,vb.net,v2.6

When adding a ObjectDataSource to a asp.net page..whihc method do i select for the select statemnt?

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 17-Nov-2010 15:38:20   

I'm not sure exactly what you are trying to do.

Will you please explain in more details.

Anthony
User
Posts: 155
Joined: 04-Oct-2006
# Posted on: 18-Nov-2010 03:02:18   

When you add objectdatasource to asp.net webpage..i click configure data...

I select the entityclasses.CallEntity as the business object.

Click next...

The i must select a method for Select/Updat/Insert/Delete

What method do i select for the Select data method? Only using select anyway! What method do i select for the Update data method?

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 18-Nov-2010 09:15:10   

In the adapter model, entity classes don't have acess to the database themselves, that's why there are no select, update, insert or delete methods.

That's one of the reasons we recommend using the LLBLGenProDataSource

Anthony
User
Posts: 155
Joined: 04-Oct-2006
# Posted on: 18-Nov-2010 12:41:28   

ok..that explains it! Using the LLBLGenProDataSource ..how do i populate it with data...i already have a webservice that return an entitycollection..how do i populate the control? I do not see any property called datasource?

thanks for your help

MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 18-Nov-2010 21:26:57   

Set .LivePersistence to false, catch the PerformSelect event, and set the .ContainedCollection property to your entity collection - the examples in the link above give some ideas on how to do all of this.

Matt