You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
2.4 KiB

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