18 lines
438 B
C#
18 lines
438 B
C#
using JNPF.DependencyInjection;
|
|
using SqlSugar;
|
|
|
|
namespace JNPF.Common.Contracts;
|
|
|
|
/// <summary>
|
|
/// 实体类基类.
|
|
/// </summary>
|
|
[SuppressSniffer]
|
|
public abstract class EntityBase<TKey> : IEntity<TKey>
|
|
where TKey : IEquatable<TKey>
|
|
{
|
|
/// <summary>
|
|
/// 获取或设置 编号.
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "F_Id", ColumnDescription = "主键", IsPrimaryKey = true)]
|
|
public TKey Id { get; set; }
|
|
} |