ProgrammerGuide.Net | Step by Step Programmer Guide

Async and Task Support For Entity Framework 6 In Visual Studio 2013 | ProgrammerGuide.Net | Step by Step Guide

EF6’s new Async Query and Save support enables you to perform asynchronous data access and take advantage of the Task<T> support introduced in .NET 4.5 within data access scenarios.  This allows you to free up threads that might otherwise by blocked on data access requests, and enable them to be used to process other requests whilst you wait for the database engine to process operations. When the database server responds the thread will be re-queued within your ASP.NET application and execution will continue.  This enables you to easily write significantly more scalable server code.

Here is an example ASP.NET WebAPI action that makes use of the new EF6 async query methods:
image
Please click here for related products on Amazon!

Jayashee

Add comment

Want to Check Celebrities News?