是否NHibernate.ToFuture()扩展方式的模拟实体框架存在吗? [英] Does an analog of the NHibernate.ToFuture() extension method exist in the Entity Framework?

查看:91
本文介绍了是否NHibernate.ToFuture()扩展方式的模拟实体框架存在吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,问题是在头

什么NHibernate的用户可以做的:

What NHibernate users can do:

var q1 = Source.Companies.ToFuture();
var q2 = Source.Items.ToFuture();
var q3 = Source.Users.ToFuture();

var compoundModel = new CompoundModel(q1, q2, q3); 
// All data obtained in single database roundtrip 
// When the first to future statement is touched


$所获得的所有数据b $ b

如何模仿EF 4这样的行为?

How to mimic such behavior in EF 4?

推荐答案

答案是否定的,因为EF无法与多个结果集的工作。

The answer is no because EF is not able to work with multiple result sets.

这篇关于是否NHibernate.ToFuture()扩展方式的模拟实体框架存在吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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