BT

New Early adopter or innovator? InfoQ has been working on some new features for you. Learn more

Entity Framework 6.0: Async, IQueryable Operators and Feature Improvements

| by Anand Narayanaswamy on Sep 11, 2012. Estimated reading time: 1 minute |

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.

Rate this Article

Adoption Stage
Style

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

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and dont miss out on content that matters to you

BT