using FreeSql.DataAnnotations; namespace Znyc.CloudCar.Model.Entities { /// /// 数据字典表 /// [Table(Name = "sys_dictionary")] public class DictionaryEntity : EntityBase { /// /// 字典父级 /// public long ParentId { get; set; } /// /// 字典编码 /// [Column(StringLength = 50)] #pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的 属性“Code”必须包含非 null 值。请考虑将 属性 声明为可以为 null。 public string Code { get; set; } #pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的 属性“Code”必须包含非 null 值。请考虑将 属性 声明为可以为 null。 /// /// 字典值 /// [Column(StringLength = 50)] #pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的 属性“Value”必须包含非 null 值。请考虑将 属性 声明为可以为 null。 public string Value { get; set; } #pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的 属性“Value”必须包含非 null 值。请考虑将 属性 声明为可以为 null。 /// /// 描述 /// [Column(StringLength = 500)] #pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的 属性“Description”必须包含非 null 值。请考虑将 属性 声明为可以为 null。 public string Description { get; set; } #pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的 属性“Description”必须包含非 null 值。请考虑将 属性 声明为可以为 null。 /// /// 字典名称 /// [Column(StringLength = 50)] #pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的 属性“Name”必须包含非 null 值。请考虑将 属性 声明为可以为 null。 public string Name { get; set; } #pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的 属性“Name”必须包含非 null 值。请考虑将 属性 声明为可以为 null。 /// /// 排序 /// public int Sort { get; set; } } }