Entity Framework 6.0: Async, IQueryable Operators and Feature Improvements
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.
The steps required to execute an Entity Framework 6.0 project are outlined below
- msbuild the Nuget.proj file in the NuGet directory
- Add the NuGet\bin\debug directory as a custom local NuGet repository
- 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.
Mike Amundsen May 29, 2015
Ben Linders May 28, 2015