c# - EF 6 equivalent of NHibernate ToFuture -


my experience orms limited nhibernate @ moment.

however, have started working on new project using ef6.

in linq nhibernate have ability defer query execution , hydration multiple queries in single round trip this:

// apples ienumerable<apple> , won't hydrated until enumerated  // or query hydrated var apples = session.query<apple>().where(a => a.type = "red").tofuture();  // oranges ienumerable<orange> , won't hydrated until enumerated  // or query hydrated var oranges = session.query<orange>().where(a => a.type = "small").tofuture();  // hydrate 3 queries var grapes = session.query<grape>().where(a => a.type = "red").tofuture().tolist(); 

someone has posted similar question regarding ef4. wondering if tofuture feature has been introduced in ef6?

tofuture not in ef6 core feature.

however, open source project called entityframework.extended provides additional functionality ef, futures included.

the ef extended syntax future.

the nuget package appears support ef 6.


Comments

Popular posts from this blog

c# - Store DBContext Log in other EF table -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -