我们可以使用**AddDbContext()或AddDbContextPool()**方法向ASP.NET Core 依赖注入容器中注册我们的应用程序特定的DbContext 类。 AddDbContext()和AddDbContextPool()方法 ...
確定! 回上一頁