Files
prefab-page-detail/Prefab/Domain/Common/IEntity.cs
2025-10-27 17:39:18 -04:00

13 lines
371 B
C#

namespace Prefab.Domain.Common;
/// <summary>
/// Interface representation of an entity. All entities should implement this.
/// </summary>
/// <typeparam name="T">The type that will represent the entity's ID field.</typeparam>
public interface IEntity<T>
{
/// <summary>
/// Gets or sets the ID of the entity.
/// </summary>
T Id { get; set; }
}