如何使用实体框架的存储过程返回其多个记录 [英] how to use stored procedures in entity framework which return multiple recordsets

查看:97
本文介绍了如何使用实体框架的存储过程返回其多个记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要建立这将返回多个记录一些存储过程。我想知道,我怎么能在实体框架使用它们?

I want to build few stored procedures which will be returning multiple recordsets. I want to know, how can I use them in Entity Framework?

推荐答案

实体框架不支持多个结果集,但目前的支持已经是<一个href=\"http://blogs.msdn.com/b/adonet/archive/2011/06/30/walkthrough-multiple-result-sets-from-stored-procedure.aspx\"相对=nofollow>包含EF 2011年6月CTP (这是即将推出的EF 4.2的第一个CTP)。

Entity framework doesn't support multiple result sets currently but the support is already included in EF June 2011 CTP (it is first CTP of upcoming EF 4.2).

如果你想有多个结果集在EF 4或EF 3.5存储过程,你可以检查 EFExtensions

If you want to have stored procedures with multiple result sets in EF 4 or EF 3.5 you can check EFExtensions.

这篇关于如何使用实体框架的存储过程返回其多个记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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