Blame view

netcore/src/Modularity/Common/NCC.Common/Entity/EntityBase.cs 513 Bytes
de2bd2f9   “wangming”   项目初始化
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  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; }
      }
  }