“System.InvalidOperationException”类型的异常在 Microsoft.EntityFrameworkCore.dll 中发生,但
“System.InvalidOperationException”类型的异常在 Microsoft.EntityFrameworkCore.dll 中发生,但未在用户代码中进行处理
其他信息: No database provider has been configured for this DbContext. A provider can be configured by overriding the DbContext.OnConfiguring method or by using AddDbContext on the application service provider. If AddDbContext is used, then also ensure that your DbContext type accepts a DbContextOptions<TContext> object in its constructor and passes it to the base constructor for DbContext.
asp.net core中连接数据库总时出现这样的错误,想知道具体怎么连接到数据库