功能导入没有 [英] Funtion import doesn

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

问题描述

我按照添加存储过程的步骤进行操作。

http://msdn.microsoft.com/en-us/library/bb896231.aspx

但是, "Entity1 ent = new Entity();"的内容没有导入函数的定义。如何使它工作?

I following the step to add a stored procedure.

http://msdn.microsoft.com/en-us/library/bb896231.aspx

However, the ent of "Entity1 ent = new Entity();" doesn't have the definition of the imported function. How to make it works?

推荐答案

函数导入是ObjectContext上的方法,而不是实体上的方法。这些主题包含调用函数导入的示例:

如何:使用执行查询存储过程

演练:使用存储过程检索实体类型
希望有所帮助。
-Brian
Function imports are methods on the ObjectContext, not on entities. These topics contain examples of calling function imports:

How to: Execute a Query Using a Stored Procedure

Walkthrough: Retrieving Entity Types with a Stored Procedure

Hope that helps.
-Brian


这篇关于功能导入没有的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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