来源:https://stackoverflow.com/questions/48696673/how-to-inject-a-scoped-service-into-dbcontext-net-core 标签 c# asp.net-core .net-core entity-framework-core