davidfowl / AspNetCoreDiagnosticScenarios

This repository has examples of broken patterns in ASP.NET Core applications
8.11k stars 764 forks source link

Usage of EntityFramework Async Query operations #26

Open sandorfr opened 6 years ago

sandorfr commented 6 years ago

As discussed on twitter, I'm opening this issue about covering the usage of EF Query Async operations.

Is it wise to say that we should always use Async methods for query when it comes to EntityFramework Core (according to the ef core docs I would say it is but since you don't mention it) https://docs.microsoft.com/en-us/ef/core/querying/async

Siderite commented 5 years ago

It's funny that there are some Async methods that are mostly used internally and their description is "use the sync version", like AddAsync