Blazor: A second operation started on this context before a previous operation completed
问题 I'm creating a server side Blazor app. The following code is in the Startup.cs . services.AddDbContext<MyContext>(o => o.UseSqlServer(Configuration.GetConnectionString("MyContext")), ServiceLifetime.Transient); services.AddTransient<MyViewModel, MyViewModel>(); And in the ViewModel: public class MyViewModel : INotifyPropertyChanged { public MyViewModel(MyContext referenceContext) { _myContext = myContext; } public async Task<IEnumerable<Dto>> GetList(string s) { return await _myContext.Table1