Skip to content

Commit

Permalink
add AppContext.SetSwitch
Browse files Browse the repository at this point in the history
  • Loading branch information
f0x4c1d committed Aug 8, 2024
1 parent 2fd9899 commit 0b133f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
}
else
{
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true);
builder.Services.AddDbContext<MyDatabaseContext>(options =>
options.UseNpgsql(builder.Configuration.GetConnectionString("AZURE_POSTGRESQL_CONNECTIONSTRING")));
builder.Services.AddStackExchangeRedisCache(options =>
Expand Down

0 comments on commit 0b133f6

Please sign in to comment.