Base solution for your next web application
Open Closed

Stored Procedures, Views and Function Calling #2723


User avatar
0
velu created

How to call Stored Procedures, Views and Function? Please provide examples.


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    In order to do that, first you need to create a custom repository, see <a class="postlink" href="http://aspnetboilerplate.com/Pages/Documents/Repositories#custom-repositories">http://aspnetboilerplate.com/Pages/Docu ... positories</a>.

    Then in your custom repository you can access the DbContext and you can call SP, View or Functions just like you do in a regular Entity Framework project.

    Thanks.

  • User Avatar
    0
    ashgadala created

    What is the need to create the custom repository. Can we re use the exisiting repository that is created in the initial template.

  • User Avatar
    0
    alper created
    Support Team

    https://aspnetboilerplate.com/Pages/Documents/Articles/Using-Stored-Procedures,-User-Defined-Functions-and-Views/index.html