Click here to Skip to main content
15,896,201 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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 27-Jun-19 23:27pm
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

 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900