Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does an analog of the NHibernate.ToFuture() extension method exist in the Entity Framework?

So the question is in the header.

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

How to mimic such behavior in EF 4?

like image 959
v00d00 Avatar asked Sep 04 '11 07:09

v00d00


1 Answers

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

like image 168
Ladislav Mrnka Avatar answered Sep 18 '22 02:09

Ladislav Mrnka