About A roslyn analyzer that will prevent dbcontext from being injected into ControllerBase with dependency injection in asp.net core.
$ dotnet add package SpicyCat.Analyzers.DisallowDbContextInControllerAdd this package to your project to get an error when DbContext is injected into ControllerBase.