solution1368
asked on
mvc stored procedure
Need two extremely simple sample
1. Call stored procedure in MVC 3 without using Entity Frame work.
2. Call stored procedure in MVC 3 using Entity Frame work
3. Any other tools that I can use to call stored procedure in MVC style environment.
Thanks
1. Call stored procedure in MVC 3 without using Entity Frame work.
2. Call stored procedure in MVC 3 using Entity Frame work
3. Any other tools that I can use to call stored procedure in MVC style environment.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Here's how to do it without EF.
http://www.csharp-station.com/Tutorial/AdoDotNet/Lesson07
To call it with EF you need to create an entity data model, import the stored procedure, and add a new function import. Once you've done that the stored procedure appears as a method on the context.