Query updated

pull/3428/head
Ahmet Çotur 6 years ago
parent bb17d9acb5
commit c9017cab87

@ -199,7 +199,7 @@ namespace Volo.Abp.AuditLogging.EntityFrameworkCore
.WhereIf(changeType.HasValue, e => e.ChangeType == changeType)
.WhereIf(!string.IsNullOrWhiteSpace(entityId), e => e.EntityId == entityId)
.WhereIf(!string.IsNullOrWhiteSpace(entityTypeFullName),
e => e.EntityTypeFullName == entityTypeFullName);
e => e.EntityTypeFullName.Contains(entityTypeFullName));
}
}
}

@ -206,7 +206,7 @@ namespace Volo.Abp.AuditLogging.MongoDB
.WhereIf(changeType.HasValue, e => e.EntityChanges.Any(ec => ec.ChangeType == changeType))
.WhereIf(!string.IsNullOrWhiteSpace(entityId), e => e.EntityChanges.Any(ec => ec.EntityId == entityId))
.WhereIf(!string.IsNullOrWhiteSpace(entityTypeFullName),
e => e.EntityChanges.Any(ec => ec.EntityTypeFullName == entityTypeFullName));
e => e.EntityChanges.Any(ec => ec.EntityTypeFullName.Contains(entityTypeFullName)));
}
protected virtual bool IsSatisfiedEntityChange(
@ -243,7 +243,7 @@ namespace Volo.Abp.AuditLogging.MongoDB
return false;
}
if (entityTypeFullName != null && entityTypeFullName != entityChange.EntityTypeFullName)
if (entityTypeFullName != null && entityChange.EntityTypeFullName.Contains(entityTypeFullName))
{
return false;
}

Loading…
Cancel
Save