Update to last EF Core
This commit is contained in:
@@ -13,7 +13,7 @@ ConfigurationManager configuration = builder.Configuration;
|
||||
builder.Services.AddControllers(
|
||||
options => options.SuppressImplicitRequiredAttributeForNonNullableReferenceTypes = true);
|
||||
|
||||
builder.Services.AddEntityFrameworkNpgsql().AddDbContext<GiecChallengeContext>(opt =>
|
||||
builder.Services.AddDbContext<GiecChallengeContext>(opt =>
|
||||
opt.UseNpgsql(builder.Configuration.GetConnectionString("PostgreSQL")));
|
||||
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user