irc-netcore-api/IRaCIS.Core.Domain/Common/Dictionary.cs

64 lines
1.5 KiB
C#

using IRaCIS.Core.Domain.Share;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models;
[Comment("后台 - 字典表(需要同步)")]
[Table("Dictionary")]
public partial class Dictionary : BaseFullAuditEntity
{
#region 导航属性
[JsonIgnore]
public List<DoctorDictionary> DoctorDicRelationList { get; set; } = new List<DoctorDictionary>();
[JsonIgnore]
[ForeignKey("ConfigTypeId")]
public Dictionary ConfigDictionary { get; set; }
[JsonIgnore]
[ForeignKey("ParentId")]
public Dictionary Parent { get; set; }
[JsonIgnore]
public List<Dictionary> ChildList { get; set; } = new List<Dictionary>();
#endregion
[StringLength(400)]
public string ChildGroup { get; set; } = null!;
public string Code { get; set; } = null!;
public Guid? ConfigTypeId { get; set; }
[Comment(" 字典类型- 枚举|bool|下拉框")]
public DicDataTypeEnum DataTypeEnum { get; set; }
[StringLength(512)]
public string Description { get; set; } = null!;
[Comment(" 是否字典类型配置")]
public bool IsConfig { get; set; }
public bool IsEnable { get; set; }
public Guid? ParentId { get; set; }
public int ShowOrder { get; set; }
[StringLength(400)]
public string Value { get; set; } = null!;
[StringLength(400)]
public string ValueCN { get; set; } = null!;
}