【问题标题】:UseSqlServer missing from AddDbContextAddDbContext 中缺少 UseSqlServer
【发布时间】:2018-07-02 14:37:50
【问题描述】:

刚刚升级到 asp.net core 2.1,UseSqlServer 似乎不再存在于 AddDbContext 的选项中强>。 (我传入连接字符串的地方)

我应该改用什么?

【问题讨论】:

标签: c# asp.net-core


【解决方案1】:

添加了 nuget 包 Microsoft.EntityFrameworkCore.SqlServer 并再次运行

【讨论】:

    【解决方案2】:
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-07-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多