7
votes

Just upgraded to asp.net core 2.1 and it seems like UseSqlServer no longer exists in the options for AddDbContext. (where I pass in the connectionstring)

What am I supposed to use instead?

2

2 Answers

17
votes

Added nuget package Microsoft.EntityFrameworkCore.SqlServer and it worked again