Boa tarde, não estou conseguindo achar o UseSqlServer. Já importei o namespace Microsoft.EntityFrameworkCore, mesmo assim o sistema não consegue encontrar uma referência.
Severity Code Description Project File Line Suppression State Error CS1061 'DbContextOptionsBuilder' does not contain a definition for 'UseSqlServer' and no accessible extension method 'UseSqlServer' accepting a first argument of type 'DbContextOptionsBuilder' could be found (are you missing a using directive or an assembly reference?) CasaDoCodigo C:\GitHub\Labs\ASPNETCore\CasaDoCodigo\CasaDoCodigo\Startup.cs 34 Active
using Microsoft.EntityFrameworkCore;
public void ConfigureServices(IServiceCollection services)
{
services.AddControllersWithViews();
//configuração do Banco de dados
string connectionString = Configuration.GetConnectionString("Default");
services.AddDbContext<ApplicationContext>(options =>
options.UseSqlServer(connectionString)
);
}