Browse Source
Output log if there are items in the entity change list.
pull/20949/head
maliming
2 years ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
4 additions and
1 deletions
-
framework/src/Volo.Abp.EntityFrameworkCore/Volo/Abp/EntityFrameworkCore/AbpDbContext.cs
|
|
|
@ -263,7 +263,10 @@ public abstract class AbpDbContext<TDbContext> : DbContext, IAbpEfCoreDbContext, |
|
|
|
{ |
|
|
|
EntityHistoryHelper.UpdateChangeList(entityChangeList); |
|
|
|
auditLog!.EntityChanges.AddRange(entityChangeList); |
|
|
|
Logger.LogDebug($"Added {entityChangeList.Count} entity changes to the current audit log"); |
|
|
|
if (entityChangeList.Count > 0) |
|
|
|
{ |
|
|
|
Logger.LogDebug($"Added {entityChangeList.Count} entity changes to the current audit log"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return result; |
|
|
|
|