Click here to Skip to main content
15,887,821 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi all
I'm using asp.net mvc with entity data model.
I have added few fields to an existing table and updated the edmx file.
The new fields are available in the views and controls.
But my problem is, when i try to add or update, the newly added fields are not updating or inserting. but the other fields does not have any problems.
Can you please help me to fix the problem.
Posted

1 solution

For starters, this tutorial actually gives a pretty good demonstration on the creation and subsequent alteration of the data model.

My suggestion to see if everything is good would be to look at the code behind for the insert and update actions. Make sure that your new fields appear here as they should and that any sql or procedure calls have the parameters properly defined. If you are access procedures, make sure that the database itself has the new fields properly implemented.

If at this point you are still getting errors or struggling with this, post some relevant code snippets and we can examine the issue from that perspective.
 
Share this answer
 
Comments
Espen Harlinn 25-Feb-11 12:02pm    
A 5 - good effort

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