Browse Source

Merge pull request #11371 from abpframework/EnableLegacyTimestampBehavior

Remove `EnableLegacyTimestampBehavior`.
pull/11372/head
liangshiwei 5 years ago
committed by GitHub
parent
commit
8c9e06ce03
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      framework/src/Volo.Abp.EntityFrameworkCore/Volo/Abp/EntityFrameworkCore/AbpDbContext.cs

6
framework/src/Volo.Abp.EntityFrameworkCore/Volo/Abp/EntityFrameworkCore/AbpDbContext.cs

@ -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