The context cannot be used while the model is being created

前端 未结 14 1368
渐次进展
渐次进展 2020-12-03 13:27

In my application I receive the following error:

The context cannot be used while the model is being created.

I\'m not sure what

14条回答
  •  Happy的楠姐
    2020-12-03 13:58

    One wrong thing in your code is always use DB context in using block. DB context is not thread safe. And is better used one instant per request

提交回复
热议问题