Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Async await support in Entity Framework?

I have been looking at async and await. I really like it.

I m curious if there is support for async and await in Entity Framework?

Entity Framework meets the use case of async/await support and if I want to use async/await with Entity Framework, how would I do it?

ie: I was able to have a wrapper around redis (booksleeve).

So when I have a repository pattern, can I use async / await with EF? how?

like image 876
DarthVader Avatar asked Aug 20 '12 19:08

DarthVader


2 Answers

Get EF 6 from NuGet in the NuGet console PM> Install-Package EntityFramework -Pre You will need to add and remove some references

like image 32
Jason Robertson Avatar answered Sep 18 '22 00:09

Jason Robertson


Direct support of async and await was a highly requested suggestion on UserVoice for Entity Framework, and is scheduled to be included in EF 6.

like image 144
Reed Copsey Avatar answered Sep 22 '22 00:09

Reed Copsey