Click here to Skip to main content
15,885,898 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Everyone,

I am creating a WebAPI using EntityFramework 6.0
For SELECTING I use a View and that data is shown in my webpage.
FOR INSERTING or UPDATING I want to use a StoredProcedure. In the EDMX I have set that up, matched all the parameters.
When I execute the Update of a datarow in the GridView I get an HTTP 500 error.
I am running a SQL Profiler on the database server and I see that the webAPI wants to do the UPDATE over the View. How can I get it to use the InsertUpdate function?
Posted
Updated 22-Sep-15 21:31pm
v2

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