EF Core支持多线程并发吗

提问

EF Core支持多线程并发吗

回答

不支持

报错

A second operation was started on this context instance before a previous operation completed. This is usually caused by different threads concurrently using the same instance of DbContext. For more information on how to avoid threading issues with DbContext, see https://go.microsoft.com/fwlink/?linkid=2097913.

参考

https://go.microsoft.com/fwlink/?linkid=2097913.

posted @ 2023-03-24 14:43  喜爱糖葫芦  阅读(97)  评论(0编辑  收藏  举报