26 lines
517 B
C#
26 lines
517 B
C#
//namespace Nop.Core.Domain.Common;
|
|
|
|
using AyCode.Interfaces.Entities;
|
|
|
|
namespace Nop.Core;
|
|
|
|
/// <summary>
|
|
/// Represents the base class for entities
|
|
/// </summary>
|
|
public abstract partial class BaseEntity : IBaseEntity
|
|
{
|
|
/// <summary>
|
|
/// 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
|
|
{
|
|
public int Id { get; set; }
|
|
} |