可以实体框架从存储过程处理多个结果集(每个结合表)? [英] Can Entity Framework deal with multiple result sets (each from joined tables) from a stored procedure?

查看:90
本文介绍了可以实体框架从存储过程处理多个结果集(每个结合表)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Linq到SQL中,我找不到一种简单的方法来处理存储过程返回的多个结果集,其中每个结果集来自表连接。每个结果集都不直接映射到表。 (不能改变这种行为)。现在,似乎使用一个DataSet要简单得多。



当前的实体框架或即将到来的4.0版本可以直接从设计器处理这些场景?或者甚至从代码中轻松实现?

解决方案

新的EF中的开箱即用不支持。



但是,CodeGallery上有一个名为 EF Extensions



希望这有帮助



Alex


In Linq to SQL, I can't find an easy way to deal with multiple result sets returned by a stored procedure where each result set is from table joins. Each result set does not map directly to a table. (can't change this behavior). For now, it seems using a DataSet is a lot simpler.

Can the current Entity Framework or the upcoming one, 4.0, deal with these kind of scenarios straight from the designer? Or even from code done easily?

解决方案

This isn't supported out of the box in the new EF.

But there is a project on CodeGallery called EF Extensions that shows how to do this easily enough.

Hope this helps

Alex

这篇关于可以实体框架从存储过程处理多个结果集(每个结合表)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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