// Add services to the container. builder.Services.AddControllers(); builder.Services.AddDbContext<"YOUR_DBCONTEXT">(option => option.UseSqlServer(builder.Configuration.GetConnectionString(CONNECTION_STRING)));