无法更新edmx图

时间:2017-04-21 08:21:03

标签: c# sql entity-framework edmx

我无法更新我的edmx图表。这些变化没有反映出来。 我尝试过这种方法,但它似乎对我不起作用。有什么帮助吗?

我试过的方法:

Go to Model browser. MyStoreProc is the name of the stored procedure (as an example). MyStoreProc will appear in 3 places.

1st place- Under Complex Types-> as MyStoreProc_result
2nd Place- Under Function Imports -> as MyStoreProc
3rd Place - Under Stored Procdures/ Functions -> as MyStoreProc
Delete all three from model. Save the edmx (by clicking in the window then ctrl+S). Then right click and click update the model from database. Then add the updated stored procedure and Save again.

1 个答案:

答案 0 :(得分:0)

我的问题中提供的解决方案是正确的。由于我的系统中有多个数据库的问题,我无法更新edmx。谢谢你的帮助。