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:
Родитель
79140422b9
Коммит
04f7913cb2
|
@ -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));
|
||||
|
|
Загрузка…
Ссылка в новой задаче