Browse Source
Merge pull request #11372 from abpframework/auto-merge/rel-5-1/825
Merge branch dev with rel-5.1
pull/11374/head
maliming
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
0 additions and
6 deletions
-
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); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|