I frequently use async/await to ensure ASP.NET MVC Web API threads are not blocked by longer-running I/O and network operations, specifically database calls
Asynchronous programming is a means of parallel programming in which a unit of work runs separately from the main application thread and notifies the calling thread of its completion, failure or progress. The main benefits one can gain from using asynchronous programming are improved application performance and responsiveness.
Entity Framework 6.0 supports asynchronous Programming, it means asynchronously you can query data and save data. By using async/await you can easily write the asynchronous programming for entity framework.
Example:
public async Task GetProjectAsync(string name)
{
DBContext _localdb = new DBContext();
return await _localdb.Projects.FirstOrDefaultAsync(x => x.Name == name);
}
https://rajeevdotnet.blogspot.com/2018/06/entity-framework-asynchronous.html