EntityBase.cs 513 Bytes
using NCC.Common.Extension;
using NCC.Dependency;
using SqlSugar;
using System;

namespace NCC.Common.Entity
{
    /// <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; }
    }
}