How do you update the complex types associated with a stored procedure?
Posted: Sat 01 Feb 2014 08:25
This is the scenario: I've imported a stored procedure and then created a method for it which automatically creates a complex type based on the columns it returns. Later I change the columns that the stored procedure returns. At this point I'd like to be able to have ED automatically update the complex type for me using a menu command, but I don't see that option if there is one.
So currently I go in and manually make the changes to the complex type, save, and regenerate the classes. However the application fails during run time because the .edml and the .msl "map" the renamed or newly added columns to the wrong column coming from the stored proc. The Entity Framework get its metadata from the .msl to make the magic happen but its not up to date.
Right now I close everything down and editing these two xml files manually and then rebuilding, but it would be better if there was a way to edit this mapping in the UI or auto-update through another workflow.
So currently I go in and manually make the changes to the complex type, save, and regenerate the classes. However the application fails during run time because the .edml and the .msl "map" the renamed or newly added columns to the wrong column coming from the stored proc. The Entity Framework get its metadata from the .msl to make the magic happen but its not up to date.
Right now I close everything down and editing these two xml files manually and then rebuilding, but it would be better if there was a way to edit this mapping in the UI or auto-update through another workflow.