I am using .NET 3.5 SP1, VS 2008 with the entity framework. I originally added a stored procedure to my model which took 2 parameters. Later, I changed the sproc to just take 1 parameter. I ran the Update Model From Database menu option and confirmed that my sproc was listed in the Refresh tab. Finished up the wizard, cleaned and rebuilt the solution and the model never changed the signature of the sproc.
Why isnt it updating? Is the Update model from database feature broken? Am I missing something? Thanks.
I’ve seen two problems with updating a Stored Procedure after adding it to the entity framework:
Updating EDMX model (function import)
Updating stored procedure complex type
open the “Model Browser” window while you have the .edmx open.
Expand the ContentModel, EntityContainer: …, and then Function Imports nodes. Look for the function import for your stored procedure and double click it. The same window you used to create it will open, but now populated with its data.
Click the Get Column Information button (look at the grid below the button to see what will be changed).
Click the Update button next to the “Complex” radio button choice.
Click OK, and the Complex Type for your result set should be updated.