Click here to Skip to main content
14,449,862 members
Rate this:
Please Sign up or sign in to vote.
Hi
I am new to MVC Framework I am trying to create a Post Api Menthod But i want to Use Procedure

How can i do that Can You Please help me

What I have tried:

Create a Entity Model Edmx
[HttpPost]
       public IHttpActionResult OneP(One one)
       {

           // how i use sp here

           return Json("Ok");
       }




procedure
create procedure sp_insert (@Id int ,@Name varchar(30))as
Insert into One Values(@Id,@Name)
Posted
Updated 28-Jun-19 0:27am
Comments
F-ES Sitecore 23-Jun-19 7:47am
   
Google "entity framework stored procedure" and you'll find lots of walkthroughs and explanations.

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100