且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在EDMX文件中添加任何新的存储过程后 - 获取引用或名称空间未找到错误?

更新时间:2021-06-29 08:44:32

首先尝试通过搜索SP名称(使用Ctrl + Shift + F)删除edmx文件中存在的所有存储过程。

接下来,尝试再次添加预期的SP。这次确保您的新存储过程获取由实体模型生成的复杂类型类以保存SP返回类型
First try to delete all the Stored procedures that exist in the edmx file by searching with the SP name (Use Ctrl + Shift + F).
Next, try to add the intended SP again. This time make sure your new stored procedure gets a complex type class generated by entity model to hold the SP return type