|
|
|
@ -1,4 +1,5 @@
|
|
|
|
using System;
|
|
|
|
using System;
|
|
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Reflection;
|
|
|
|
using System.Reflection;
|
|
|
|
using Volo.Abp.MultiTenancy;
|
|
|
|
using Volo.Abp.MultiTenancy;
|
|
|
|
|
|
|
|
|
|
|
|
@ -11,8 +12,10 @@ namespace Volo.Abp.Domain.Entities
|
|
|
|
/// <inheritdoc/>
|
|
|
|
/// <inheritdoc/>
|
|
|
|
public override string ToString()
|
|
|
|
public override string ToString()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return $"[ENTITY: {GetType().Name}]";
|
|
|
|
return $"[ENTITY: {GetType().Name}] Keys = {GetKeys().JoinAsString(", ")}";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public abstract object[] GetKeys();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc cref="IEntity{TKey}" />
|
|
|
|
/// <inheritdoc cref="IEntity{TKey}" />
|
|
|
|
@ -97,6 +100,11 @@ namespace Volo.Abp.Domain.Entities
|
|
|
|
return !(left == right);
|
|
|
|
return !(left == right);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public override object[] GetKeys()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return new object[] {Id};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc/>
|
|
|
|
/// <inheritdoc/>
|
|
|
|
public override string ToString()
|
|
|
|
public override string ToString()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|