SysDictData.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. using Furion.DatabaseAccessor;
  2. using Microsoft.EntityFrameworkCore;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. namespace YBEE.EQM.Core
  6. {
  7. /// <summary>
  8. /// 字典值
  9. /// </summary>
  10. [Comment("字典值")]
  11. public partial class SysDictData : IEntity
  12. {
  13. /// <summary>
  14. /// 主键
  15. /// </summary>
  16. [Comment("主键")]
  17. [Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
  18. public int Id { get; set; }
  19. /// <summary>
  20. /// 字典类型Id
  21. /// </summary>
  22. [Comment("字典类型Id")]
  23. [Required]
  24. public int SysDictTypeId { get; set; }
  25. /// <summary>
  26. /// 名称
  27. /// </summary>
  28. [Comment("名称")]
  29. [Required, StringLength(200)]
  30. public string Name { get; set; }
  31. /// <summary>
  32. /// 别称
  33. /// </summary>
  34. [Comment("别称")]
  35. [Required, StringLength(200)]
  36. public string NickName { get; set; } = "";
  37. /// <summary>
  38. /// 编码
  39. /// </summary>
  40. [Comment("编码")]
  41. [Required, StringLength(80)]
  42. public string Code { get; set; }
  43. /// <summary>
  44. /// 值
  45. /// </summary>
  46. [Comment("值")]
  47. [Required]
  48. public int Value { get; set; }
  49. /// <summary>
  50. /// 前端状态编码
  51. /// </summary>
  52. [Comment("前端状态编码")]
  53. [StringLength(80)]
  54. public string AntStatus { get; set; }
  55. /// <summary>
  56. /// 前端颜色值
  57. /// </summary>
  58. [Comment("前端颜色值")]
  59. [StringLength(80)]
  60. public string AntColor { get; set; }
  61. /// <summary>
  62. /// 排序
  63. /// </summary>
  64. [Comment("排序")]
  65. [Required]
  66. public int Sort { get; set; } = 0;
  67. /// <summary>
  68. /// 备注
  69. /// </summary>
  70. [Comment("备注")]
  71. [StringLength(200)]
  72. public string Remark { get; set; }
  73. /// <summary>
  74. /// 状态
  75. /// </summary>
  76. [Comment("状态")]
  77. [Required]
  78. public CommonStatus Status { get; set; } = CommonStatus.ENABLE;
  79. /// <summary>
  80. /// 一对一引用(字典类型)
  81. /// </summary>
  82. public virtual SysDictType SysDictType { get; set; }
  83. }
  84. }