The context cannot be used while the model is being created

前端 未结 14 1351
渐次进展
渐次进展 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条回答
  •  眼角桃花
    2020-12-03 14:11

    I was able to resolve this issue by adding

    MultipleActiveResultSets=true
    

    to the my EF connection string.

    I fixed it by adding this multiple thread connection parameter.

提交回复
热议问题