添加项目文件。
This commit is contained in:
12
common/Tnb.Common/Contracts/IEntity.cs
Normal file
12
common/Tnb.Common/Contracts/IEntity.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace JNPF.Common.Contracts;
|
||||
|
||||
/// <summary>
|
||||
/// 实体类基类.
|
||||
/// </summary>
|
||||
public interface IEntity<TKey>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置 实体唯一标识,主键.
|
||||
/// </summary>
|
||||
TKey Id { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user