[CHANGE] Fixes library db
This commit is contained in:
@@ -82,7 +82,7 @@ public class AuditInterceptor : SaveChangesInterceptor
|
||||
EntityName = entry.Entity.GetType().Name,
|
||||
EntityId = primaryKey ?? "Unknown",
|
||||
PropertyName = prop.Metadata.Name,
|
||||
OldValue = SerializeValue(prop.OriginalValue),
|
||||
OldValue = changeType == EntityState.Added ? null : SerializeValue(prop.OriginalValue),
|
||||
NewValue = SerializeValue(prop.CurrentValue),
|
||||
ModifiedUtc = DateTime.UtcNow,
|
||||
ChangedBy = "SYSTEM",
|
||||
|
||||
Reference in New Issue
Block a user