SteinTech
SteinTech

Reputation: 4068

UseSqlServer missing from AddDbContext

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?

Upvotes: 19

Views: 13620

Answers (2)

SteinTech
SteinTech

Reputation: 4068

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

Upvotes: 41

Related Questions