ASP.NET MVC4 with Entity Framework 6 to call a stored procedure

asp.net asp.net-mvc-4 entity-framework-6 report stored-procedures

Question

I have a stored procedure to display report in ASP.NET MVC project using Entity framework, this procedure is make for read purpose. I searched all tutorial but i didnt find any relevant example or relevant information that how to read stored procedure and display report in MVC project.

1
1
7/21/2014 6:31:30 AM

Popular Answer

Follow below step.

  1. right Click on .edmx file.
  2. Choose Update Model from database.
  3. Add new stored procedure and refresh store procedure and ok.
  4. again right Click on .edmx file.
  5. Add New -> Import function.
  6. Add function name and choose stored procedure and ok.
1
7/21/2014 6:42:29 AM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow