using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
using System.Xml.Serialization;
namespace Ewide.Core
{
///
/// 字典值表
///
[Table("sys_dict_data")]
[Comment("字典值表")]
public class SysDictData : DEntityBase
{
///
/// 字典类型Id
///
[Comment("字典类型Id")]
[Column("TypeId", TypeName = "varchar(36)")]
public string TypeId { get; set; }
///
/// 值
///
[Comment("值")]
public string Value { get; set; }
///
/// 编码
///
[Comment("编码")]
public string Code { get; set; }
[Comment("扩展编码,以json形式存储")]
public string ExtCode { get; set; }
///
/// 排序
///
[Comment("排序")]
public int Sort { get; set; }
///
/// 备注
///
[Comment("备注")]
public string Remark { get; set; }
///
/// 状态(字典 0正常 1停用 2删除)
///
[Comment("状态")]
public CommonStatus Status { get; set; } = CommonStatus.ENABLE;
///
/// 所属类型
///
[XmlIgnore]
public SysDictType SysDictType { get; set; }
}
}