using Furion.DatabaseAccessor; using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace YBEE.EQM.Core { /// /// 字典值 /// [Comment("字典值")] public partial class SysDictData : IEntity { /// /// 主键 /// [Comment("主键")] [Key, DatabaseGenerated(DatabaseGeneratedOption.None)] public int Id { get; set; } /// /// 字典类型Id /// [Comment("字典类型Id")] [Required] public int SysDictTypeId { get; set; } /// /// 名称 /// [Comment("名称")] [Required, StringLength(200)] public string Name { get; set; } /// /// 别称 /// [Comment("别称")] [Required, StringLength(200)] public string NickName { get; set; } = ""; /// /// 编码 /// [Comment("编码")] [Required, StringLength(80)] public string Code { get; set; } /// /// 值 /// [Comment("值")] [Required] public int Value { get; set; } /// /// 前端状态编码 /// [Comment("前端状态编码")] [StringLength(80)] public string AntStatus { get; set; } /// /// 前端颜色值 /// [Comment("前端颜色值")] [StringLength(80)] public string AntColor { get; set; } /// /// 排序 /// [Comment("排序")] [Required] public int Sort { get; set; } = 0; /// /// 备注 /// [Comment("备注")] [StringLength(200)] public string Remark { get; set; } /// /// 状态 /// [Comment("状态")] [Required] public CommonStatus Status { get; set; } = CommonStatus.ENABLE; /// /// 一对一引用(字典类型) /// public virtual SysDictType SysDictType { get; set; } } }