UseSqlServer method missing MVC 6

前端 未结 4 1679
甜味超标
甜味超标 2021-01-03 18:08

I am trying to implement Entity Framework 7 in MVC 6, and on this page here it says to do

services.AddEntityFramework()
    .AddSqlServer()
    .AddDbContext         


        
4条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-03 18:53

    Install Microsoft.EntityFrameworkCore.SqlServer 1.0.1 package works for me Version of Microsoft.EntityFrameworkCore is 1.1.0

提交回复
热议问题