Open Closed

Stored Procedures, Views and Function Calling #2723


0
velu created

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


3 Answer(s)
  • 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.

  • 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.

  • 0
    alper created
    Support Team

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