BT
x Your opinion matters! Please fill in the InfoQ Survey about your reading habits!

Entity Framework 6.0: Async, IQueryable Operators and Feature Improvements

by Anand Narayanaswamy on Sep 11, 2012 |

According to Microsoft, Entity Framework 6.0 will provide support for async and can be implemented either using SaveChangesAsync() or ExecuteSqlCommandAsync() methods.

Scott Allen, principal consultant, OdeToCode has examined the implementation of async by dissecting the source code from the Entity Framework project site.

Entity Framework 6.0 will also enable developers to perform async operations on IQueryable (IQueryable<T>) operator and can be implemented using FindAsync() and SingleAsync() extension methods. Moreover, developers will be able to make use of ToListAsync() method to execute the code.

“The new IQueryable operators are async versions of operators that materialize a concrete result”, says Scott.

Entity Framework 6.0 will provide support for stored procedures mapping and database functions with the ability to write custom conventions and get them registered with Code First.

The steps required to execute an Entity Framework 6.0 project are outlined below

  1. msbuild the Nuget.proj file in the NuGet directory
  2. Add the NuGet\bin\debug directory as a custom local NuGet repository
  3. Add references to Entity Framework 6 via NuGet

Microsoft plans to release two separate assemblies for Entity Framework 6.0 such as one for .NET Framework 4.5 with all features discussed above and another for .NET Framework 4 without async support.

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Educational Content

General Feedback
Bugs
Advertising
Editorial
InfoQ.com and all content copyright © 2006-2014 C4Media Inc. InfoQ.com hosted at Contegix, the best ISP we've ever worked with.
Privacy policy
BT