diff --git a/backend/GiecChallenge/Program.cs b/backend/GiecChallenge/Program.cs index 614389b..a6d8042 100644 --- a/backend/GiecChallenge/Program.cs +++ b/backend/GiecChallenge/Program.cs @@ -13,7 +13,7 @@ ConfigurationManager configuration = builder.Configuration; builder.Services.AddControllers( options => options.SuppressImplicitRequiredAttributeForNonNullableReferenceTypes = true); -builder.Services.AddEntityFrameworkNpgsql().AddDbContext(opt => +builder.Services.AddDbContext(opt => opt.UseNpgsql(builder.Configuration.GetConnectionString("PostgreSQL"))); AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true);