Merge pull request #11371 from abpframework/EnableLegacyTimestampBehavior

Remove `EnableLegacyTimestampBehavior`.
pull/11372/head
liangshiwei 3 years ago committed by GitHub
commit 8c9e06ce03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -122,12 +122,6 @@ public abstract class AbpDbContext<TDbContext> : DbContext, IAbpEfCoreDbContext,
if (provider != null)
{
modelBuilder.SetDatabaseProvider(provider.Value);
if (provider.Value == EfCoreDatabaseProvider.PostgreSql)
{
// https://www.npgsql.org/efcore/release-notes/6.0.html#opting-out-of-the-new-timestamp-mapping-logic
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true);
}
}
}

Loading…
Cancel
Save