maliming
2 years ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
1 additions and
10 deletions
-
framework/src/Volo.Abp.EntityFrameworkCore/Volo/Abp/EntityFrameworkCore/EntityHistory/EntityHistoryHelper.cs
|
|
|
@ -225,16 +225,7 @@ public class EntityHistoryHelper : IEntityHistoryHelper, ITransientDependency |
|
|
|
|
|
|
|
case IEntity entryEntity: |
|
|
|
var keys = entryEntity.GetKeys(); |
|
|
|
if (keys.Length == 0) |
|
|
|
{ |
|
|
|
return null; |
|
|
|
} |
|
|
|
|
|
|
|
var serializedKeys = keys.Length == 1 && !isCollection |
|
|
|
? keys[0]?.ToString() |
|
|
|
: JsonSerializer.Serialize(keys); |
|
|
|
|
|
|
|
return serializedKeys?.TruncateWithPostfix(EntityPropertyChangeInfo.MaxValueLength); |
|
|
|
return keys.Length == 0 ? null : string.Join(", ",keys).TruncateWithPostfix(EntityPropertyChangeInfo.MaxValueLength); |
|
|
|
|
|
|
|
case IEnumerable enumerable: |
|
|
|
var keysList = new List<string>(); |
|
|
|
|