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

2 posts, 0 answers
  1. Rodolfo Villanueva
    Rodolfo Villanueva avatar
    2 posts
    Member since:
    Jan 2010

    Posted 03 Dec 2012 Link to this post

    How can I use orm - domain method, (stored procedure in the database), with OpenAccessLinqDataSource?
  2. Dimitar Tachev
    Dimitar Tachev avatar
    67 posts

    Posted 06 Dec 2012 Link to this post

    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.
  3. DevCraft banner
Back to Top