BaseEntity.ToString()
This commit is contained in:
parent
bef91e0131
commit
ed7a2e8cd6
|
|
@ -13,6 +13,11 @@ public abstract partial class BaseEntity : IBaseEntity
|
|||
/// Gets or sets the entity identifier
|
||||
/// </summary>
|
||||
public int Id { get; set; }
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return $"{GetType().Name} [Id: {Id}]";
|
||||
}
|
||||
}
|
||||
|
||||
public interface IBaseEntity //: IEntityInt
|
||||
|
|
|
|||
Loading…
Reference in New Issue