Modelo en MVC

Contexto:


public class Contexto:DbContext
{
public Contexto()
{

}

public Contexto(DbContextOptions<Contexto> options)
: base(options)
{

}
} `

Program:


builder.Services.AddDbContext<Contexto>(options =>
options.UseSqlServer("Server=.\\SQLExpress;Database=mvc;Trusted_Connection=True;"));