I have a parameterized stored procedure which is executing a view and return the results. The view is showing results of join of two tables. I need to pass parameters to this stored procedure and call it from MVC3 controller action using EF 4.1 code first approach and return the results. How can I do this. Please suggest step by step.
Thanks.
I don’t know what part of “Code First doesn’t support stored procedures” people don’t understand, but this keeps coming up and it shouldn’t. You can muddle your way around it (kind of), but really if you need to execute stored procedures then you shouldn’t be using code first at this point.