Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ


Choose your language

InfoQ Homepage News Entity Framework 6.0: Async, IQueryable Operators and Feature Improvements

Entity Framework 6.0: Async, IQueryable Operators and Feature Improvements

This item in japanese


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


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.

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

Community comments

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

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