The DbContext of type cannot be pooled because it does not have a single public constructor accepting a single parameter of type DbContextOptions
问题 I am trying to upgrade our current .Net Core application from 1.1 to 2.0 and am getting this runtime error: "The DbContext of type 'CoreContext' cannot be pooled because it does not have a single public constructor accepting a single parameter of type DbContextOptions". It is caused by using the new IServiceCollection.AddDbContextPool<> function. When I use IServiceCollection.AddDbContext<> it still works. This application is DB-First, so I generate all our contexts using 'Scaffold-DbContext'