BT

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Topics

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

Adoption
Style

BT