jjzjj

DeliveryBoxStatus

全部标签

c# - 为什么 Await 不会出现阻止对 EF 上下文的第二次操作

在ASP.NETMVC应用程序中,我收到以下关于使用EntityFramework上下文的Controller方法之一的错误消息。Asecondoperationstartedonthiscontextbeforeapreviousasynchronousoperationcompleted.Use'await'toensurethatanyasynchronousoperationshavecompletedbeforecallinganothermethodonthiscontext.Anyinstancemembersarenotguaranteedtobethreadsafe.