Browse Source

Merge pull request #25556 from abpframework/liming/fix-entity-change-truncate-length

Fix EntityId truncate length in EntityChange constructor
pull/25561/head
Engincan VESKE 4 months ago
committed by GitHub
parent
commit
c2029c4102
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      modules/audit-logging/src/Volo.Abp.AuditLogging.Domain/Volo/Abp/AuditLogging/EntityChange.cs

2
modules/audit-logging/src/Volo.Abp.AuditLogging.Domain/Volo/Abp/AuditLogging/EntityChange.cs

@ -47,7 +47,7 @@ public class EntityChange : Entity<Guid>, IMultiTenant, IHasExtraProperties
ChangeTime = entityChangeInfo.ChangeTime;
ChangeType = entityChangeInfo.ChangeType;
EntityTenantId = entityChangeInfo.EntityTenantId;
EntityId = entityChangeInfo.EntityId.Truncate(EntityChangeConsts.MaxEntityTypeFullNameLength);
EntityId = entityChangeInfo.EntityId.Truncate(EntityChangeConsts.MaxEntityIdLength);
EntityTypeFullName = entityChangeInfo.EntityTypeFullName.TruncateFromBeginning(EntityChangeConsts.MaxEntityTypeFullNameLength);
PropertyChanges = entityChangeInfo

Loading…
Cancel
Save