.net6.0 webapi demo

T_Sys_Department.cs 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System.ComponentModel.DataAnnotations;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. namespace Net6Demo_Api.Entity
  4. {
  5. /// <summary>
  6. /// 部门实体
  7. /// </summary>
  8. [Table("T_Sys_Department")]
  9. public class T_Sys_Department
  10. {
  11. ///<summary>主键</summary>
  12. [Key, Column(Order = 1)]
  13. public int F_DeptId { get; set; }
  14. ///<summary>父ID</summary>
  15. public int? F_ParentId { get; set; }
  16. ///<summary>编码</summary>
  17. public string? F_DeptCode { get; set; }
  18. ///<summary>名称</summary>
  19. public string? F_DeptName { get; set; }
  20. ///<summary>排序</summary>
  21. public int? F_Sort { get; set; }
  22. ///<summary>备注</summary>
  23. public string? F_Remark { get; set; }
  24. ///<summary>0禁用1启用</summary>
  25. public int? F_State { get; set; }
  26. ///<summary>创建人</summary>
  27. public string? F_CreateUser { get; set; }
  28. ///<summary>创建时间</summary>
  29. public DateTime? F_CreateTime { get; set; }
  30. }
  31. }