摘要: AddDbContext 是单例模式的作用域,需要通过 using (var scope = _scopeFactory.CreateScope()) //剔除单例模式的Context问题。 { var wallContext = scope.ServiceProvider.GetRequiredS 阅读全文
posted @ 2020-07-11 00:38 夕阳依旧 阅读(3601) 评论(0) 推荐(0)