Исправление бд

This commit is contained in:
Sergey Karmanov 2023-12-23 02:25:04 +03:00
parent b66e0edda7
commit cda564870b
Signed by: serega404
GPG Key ID: B6AD49C8C835460C

View File

@ -26,7 +26,7 @@ var configuration = builder.Configuration;
// Add services to the container. // Add services to the container.
builder.Services.AddDbContext<ApplicationContext>(options => builder.Services.AddDbContext<ApplicationContext>(options =>
options.UseNpgsql(builder.Configuration.GetConnectionString("DefaultConnection"))); options.UseNpgsql(builder.Configuration["CONNECTION_STRING"]));
builder.Services.AddIdentity<User, IdentityRole>() builder.Services.AddIdentity<User, IdentityRole>()
.AddEntityFrameworkStores<ApplicationContext>(); .AddEntityFrameworkStores<ApplicationContext>();