21 lines
491 B
C#
21 lines
491 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using JNPF.Common.Contracts;
|
|
using JNPF.Common.Security;
|
|
using SqlSugar;
|
|
|
|
namespace Tnb.Common.Contracts;
|
|
|
|
public class BaseEntity<TKey> : IEntity where TKey : IEquatable<TKey>
|
|
{
|
|
/// <summary>
|
|
/// 获取或设置 编号.
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "id", ColumnDescription = "主键", IsPrimaryKey = true)]
|
|
public TKey id { get; set; }
|
|
|
|
}
|