添加项目文件。
This commit is contained in:
18
common/Tnb.Common/Contracts/EntityBase.cs
Normal file
18
common/Tnb.Common/Contracts/EntityBase.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
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; }
|
||||
}
|
||||
Reference in New Issue
Block a user