新增基础数据接口库,MOM工艺路线模版左侧树形结构返回
This commit is contained in:
20
common/Tnb.Common/Contracts/BaseEntity`1.cs
Normal file
20
common/Tnb.Common/Contracts/BaseEntity`1.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using JNPF.Common.Contracts;
|
||||
using SqlSugar;
|
||||
|
||||
namespace Tnb.Common.Contracts
|
||||
{
|
||||
public class BaseEntity<TKey> : IEntity<TKey> where TKey : IEquatable<TKey>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置 编号.
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "id", ColumnDescription = "主键", IsPrimaryKey = true)]
|
||||
public TKey Id { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user