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

Domain method, (stored procedure in the database) and OpenAccessLinqDataSource

1 Answer 42 Views
Integration with other products
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rodolfo Villanueva
Top achievements
Rank 2
Rodolfo Villanueva asked on 03 Dec 2012, 08:53 PM
How can I use orm - domain method, (stored procedure in the database), with OpenAccessLinqDataSource?

1 Answer, 1 is accepted

Sort by
0
Dimitar Tachev
Telerik team
answered on 06 Dec 2012, 11:47 AM
Hi Rodolfo,

In general you could use domain method in the code-behind of your page. In order to do that you could handle some of the various OpenAccessLinqDataSource events that are used to customize the behavior of the control.

For your convenience I created a sample application demonstrating how to handle the Selecting event to populate the data source from domain method, please find it attached. Bear in mind that the example is using the AdventureWorks database and its upsGetEmployeeManagers stored procedure.

Let me know whether this helps or if I can assist you further.

Kind regards,
Dimitar Tachev
the Telerik team
Telerik OpenAccess ORM Meets ASP.NET Web API. Read more.
Tags
Integration with other products
Asked by
Rodolfo Villanueva
Top achievements
Rank 2
Answers by
Dimitar Tachev
Telerik team
Share this question
or