Add missing qualifier to SPA templates Program.cs (dotnet/aspnetcore#34310)

Resolves dotnet/AspNetCore-ManualTests#743

Commit migrated from dotnet/aspnetcore@b22924416d
This commit is contained in:
Damian Edwards 2021-07-13 19:09:20 -07:00 коммит произвёл GitHub
Родитель 79140422b9
Коммит 04f7913cb2
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -23,7 +23,7 @@ var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
#if (IndividualLocalAuth)
var connectionString = Configuration.GetConnectionString("DefaultConnection");
var connectionString = builder.Configuration.GetConnectionString("DefaultConnection");
builder.Services.AddDbContext<ApplicationDbContext>(options =>
#if (UseLocalDB)
options.UseSqlServer(connectionString));

Просмотреть файл

@ -23,7 +23,7 @@ var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
#if (IndividualLocalAuth)
var connectionString = Configuration.GetConnectionString("DefaultConnection");
var connectionString = builder.Configuration.GetConnectionString("DefaultConnection");
builder.Services.AddDbContext<ApplicationDbContext>(options =>
#if (UseLocalDB)
options.UseSqlServer(connectionString));