Function import when sp is changed

落花浮王杯 提交于 2019-12-06 03:11:16

问题


I am using the function import feature of the entity framework to call a stored procedure from .net 4.0 code.

However, everytime I change the stored proc result set, I have to delete the function import and add it again.

Is there any way, in which I can incorporate the change by changing the code in the entity model, rather than having to delete and add the function import again?

Thanks :)


回答1:


When using function import some changes are reflected automatically. For example if you add parameter to stored procedure and run Update from database it will automatically update both storage model definition and function import. If you modify result set which is not mapped to entity but to complex type instead you have to manually trigger function import updata - open function import and push Update button next to the complex type combo box.



来源:https://stackoverflow.com/questions/6381423/function-import-when-sp-is-changed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!