BaseEntity.ToString()

This commit is contained in:
Loretta 2025-11-07 05:56:47 +01:00
parent bef91e0131
commit ed7a2e8cd6
1 changed files with 5 additions and 0 deletions

View File

@ -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