@@ -1,60 +1,63 @@
|
||||
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
|
||||
namespace IRaCIS.Core.Domain.Models;
|
||||
|
||||
[Comment("后台 - 字典表(需要同步)")]
|
||||
[Table("Dictionary")]
|
||||
public partial class Dictionary : BaseFullAuditEntity
|
||||
{
|
||||
[Table("Dictionary")]
|
||||
public partial class Dictionary : BaseFullAuditEntity
|
||||
{
|
||||
#region µ¼º½ÊôÐÔ
|
||||
[JsonIgnore]
|
||||
public List<DoctorDictionary> DoctorDicRelationList { get; set; } = new List<DoctorDictionary>();
|
||||
#region 导航属性
|
||||
[JsonIgnore]
|
||||
public List<DoctorDictionary> DoctorDicRelationList { get; set; } = new List<DoctorDictionary>();
|
||||
|
||||
|
||||
[JsonIgnore]
|
||||
[ForeignKey("ConfigTypeId")]
|
||||
public Dictionary ConfigDictionary { get; set; }
|
||||
[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>();
|
||||
[JsonIgnore]
|
||||
[ForeignKey("ParentId")]
|
||||
public Dictionary Parent { get; set; }
|
||||
[JsonIgnore]
|
||||
public List<Dictionary> ChildList { get; set; } = new List<Dictionary>();
|
||||
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
|
||||
public string ChildGroup { get; set; } = string.Empty;
|
||||
[StringLength(400)]
|
||||
public string ChildGroup { get; set; } = null!;
|
||||
|
||||
public string Code { get; set; } = null!;
|
||||
|
||||
public DicDataTypeEnum DataTypeEnum { get; set; }
|
||||
public Guid? ConfigTypeId { get; set; }
|
||||
|
||||
[Comment(" 字典类型- 枚举|bool|下拉框")]
|
||||
public DicDataTypeEnum DataTypeEnum { get; set; }
|
||||
|
||||
[Column("Value")]
|
||||
public string Value { get; set; } = string.Empty;
|
||||
[StringLength(512)]
|
||||
public string Description { get; set; } = null!;
|
||||
|
||||
[Column("ValueCN")]
|
||||
public string ValueCN { get; set; } = string.Empty;
|
||||
[Comment(" 是否字典类型配置")]
|
||||
public bool IsConfig { get; set; }
|
||||
|
||||
public bool IsEnable { get; set; }
|
||||
|
||||
[StringLength(512)]
|
||||
public string Description { get; set; } = string.Empty;
|
||||
public Guid? ParentId { get; set; }
|
||||
|
||||
public int ShowOrder { get; set; }
|
||||
public int ShowOrder { get; set; }
|
||||
|
||||
public string Code { get; set; } = string.Empty;
|
||||
[StringLength(400)]
|
||||
public string Value { get; set; } = null!;
|
||||
|
||||
public Guid? ParentId { get; set; }
|
||||
|
||||
public bool IsEnable { get; set; }
|
||||
|
||||
public Guid? ConfigTypeId { get; set; }
|
||||
[StringLength(400)]
|
||||
public string ValueCN { get; set; } = null!;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user