当SP被改变功能的进口 [英] Function import when sp is changed

查看:127
本文介绍了当SP被改变功能的进口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在用的是实体框架的功能导入功能调用从.NET 4.0 code存储过程。

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.

有没有什么办法,我在其中可以通过改变code在实体模型,而不必再删除和添加功能导入更改合并?

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?

感谢:)

推荐答案

在使用功能导入一些变化会自动反映。例如,如果你从数据库中添加参数,存储过程和运行的更新的它会自动更新这两个存储模型的定义和功能的进口。如果修改未映射到实体,而是要复杂类型,而不是你不得不手动触发功能的进口UPDATA结果集 ​​- open函数进口,推动旁边的复杂类型组合框更新按钮

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.

这篇关于当SP被改变功能的进口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆