Browse Source

Merge pull request #20949 from abpframework/entityChangeList

Output log if there are items in the entity change list.
pull/20957/head
Alper Ebiçoğlu 2 years ago
committed by GitHub
parent
commit
0a35076161
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 5
      framework/src/Volo.Abp.EntityFrameworkCore/Volo/Abp/EntityFrameworkCore/AbpDbContext.cs

5
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;

Loading…
Cancel
Save