Files
SteamTools/System.Common.CoreLib/Application/Entities/IEntity.cs
T
2021-02-20 16:45:44 +08:00

14 lines
372 B
C#

namespace System.Application.Entities
{
/// <summary>
/// (数据库表)实体模型接口
/// </summary>
/// <typeparam name="TPrimaryKey"></typeparam>
public interface IEntity<TPrimaryKey> where TPrimaryKey : IEquatable<TPrimaryKey>
{
/// <summary>
/// 主键
/// </summary>
TPrimaryKey Id { get; set; }
}
}