This is a migrated thread and some comments may be shown as answers.

Object as parameter to BLL/DAL, ObjectDataSource

1 Answer 80 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lars Meyer
Top achievements
Rank 2
Lars Meyer asked on 10 Aug 2009, 01:33 PM
I'm trying to hook up an ObjectDataSource to a RadGrid, and I get the following error msg:

ObjectDataSource 'ObjKenneler' could not find a non-generic method 'UpdateKennel' that has parameters: KennelID, Telefon, Hjemmeside, Bynavn, Email, Vejnavn, Region, EjerFornavn, EjerEfternavn, Postnummer, Beskrivelse, Kennelnavn.


In my Application, I have a Business Layer (BLL) and a Data Layer (DAL), and my Update method takes a fully populated object as a parameter, and not, as the error suggests, all the properties in a parameter list.

How can I configure the grid/ODS to pass an object to my BLL/DAL methods, instead of the properties one by one?


1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 13 Aug 2009, 11:44 AM
Hello Lars,

I guess you haven't set DataObjectTypeName property of your ObjectDataSource control.
For your convenience I am attaching sample project.

All the best,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Lars Meyer
Top achievements
Rank 2
Answers by
Nikolay Rusev
Telerik team
Share this question
or