maliming
3 years ago
committed by
maliming
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
1 additions and
2 deletions
-
framework/src/Volo.Abp.EntityFrameworkCore/Volo/Abp/EntityFrameworkCore/AbpDbContext.cs
|
|
|
@ -163,6 +163,7 @@ public abstract class AbpDbContext<TDbContext> : DbContext, IAbpEfCoreDbContext, |
|
|
|
List<EntityChangeInfo>? entityChangeList = null; |
|
|
|
if (auditLog != null) |
|
|
|
{ |
|
|
|
EntityHistoryHelper.InitializeNavigationHelper(AbpEfCoreNavigationHelper); |
|
|
|
entityChangeList = EntityHistoryHelper.CreateChangeList(ChangeTracker.Entries().ToList()); |
|
|
|
} |
|
|
|
|
|
|
|
@ -246,8 +247,6 @@ public abstract class AbpDbContext<TDbContext> : DbContext, IAbpEfCoreDbContext, |
|
|
|
ChangeTracker.Tracked += ChangeTracker_Tracked; |
|
|
|
ChangeTracker.StateChanged += ChangeTracker_StateChanged; |
|
|
|
|
|
|
|
EntityHistoryHelper.InitializeNavigationHelper(AbpEfCoreNavigationHelper); |
|
|
|
|
|
|
|
if (UnitOfWorkManager is AlwaysDisableTransactionsUnitOfWorkManager) |
|
|
|
{ |
|
|
|
Database.AutoTransactionBehavior = AutoTransactionBehavior.Never; |
|
|
|
|