开发者

Function import when sp is changed

开发者 https://www.devze.com 2023-03-13 19:15 出处:网络
I am using the function import feature of the entity framework 开发者_JS百科to call a stored procedure from .net 4.0 code.

I am using the function import feature of the entity framework 开发者_JS百科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 :)


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号