We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4715038 commit 7bdc79cCopy full SHA for 7bdc79c
src/Infrastructure/Data/Interceptors/AuditableEntityInterceptor.cs
@@ -39,7 +39,7 @@ public void UpdateEntities(DbContext? context)
39
40
foreach (var entry in context.ChangeTracker.Entries<BaseAuditableEntity>())
41
{
42
- if (entry.State == EntityState.Added || entry.State == EntityState.Modified || entry.HasChangedOwnedEntities())
+ if (entry.State is EntityState.Added or EntityState.Modified || entry.HasChangedOwnedEntities())
43
44
var utcNow = _dateTime.GetUtcNow();
45
if (entry.State == EntityState.Added)
0 commit comments