[CHANGE] Small optimizations

This commit is contained in:
max
2025-09-28 18:34:45 +02:00
parent c170b8db1f
commit a2a420d596
3 changed files with 3 additions and 3 deletions

View File

@@ -56,7 +56,7 @@ public class AuditInterceptor : SaveChangesInterceptor
break;
case EntityState.Modified:
audits.AddRange(allowedProperties
.Where(p => p.IsModified)
.Where(p => p.IsModified && !Equals(p.OriginalValue, p.CurrentValue))
.Select(p => CreateAudit(entry, p, entry.State, primaryKey))
);
break;