I am new to EF core and I\'m trying to get it to work with my ASP.NET Core project.
I get the above error in my startup.cs when trying configure the
First we install the Microsoft.EntityFrameworkCore.SqlServer NuGet Package:
PM > Install-Package Microsoft.EntityFrameworkCore.SqlServer
Then, after importing the namespace with
using Microsoft.EntityFrameworkCore;
we add the database context:
services.AddDbContext(options =>
options.UseSqlServer(config.GetConnectionString("optimumDB")));