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

In an ASP.NET MVC project using Entity Framework, I have a stored procedure to display reports; this process is intended to be read-only. I looked through every lesson, but I couldn't locate any examples or material that would have helped me understand how to read a stored procedure and display a report in an MVC project.

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

Popular Answer

Observe the next step.

  1. On the.edmx file, right-click.
  2. Select Database Update Model.
  3. Add a new stored procedure, then refresh the existing one.
  4. again correct On the.edmx file, click.
  5. Use the Add New -> Import option.
  6. Add the function name, select stored procedure, and click "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