irc-netcore-api/IRaCIS.Core.Domain/Reading/MedicalAudit/ReadingMedicineSystemQuesti...

60 lines
1.8 KiB
C#

//--------------------------------------------------------------------
// 此代码由T4模板自动生成 byzhouhang 20210918
// 生成时间 2022-06-29 13:54:08
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
using System;
using IRaCIS.Core.Domain.Share;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Collections.Generic;
using System.Linq;
using Microsoft.EntityFrameworkCore;
namespace IRaCIS.Core.Domain.Models;
[Comment("系统标准 - 医学审核问题 (需要同步)")]
[Table("ReadingMedicineSystemQuestion")]
public class ReadingMedicineSystemQuestion : BaseFullAuditEntity
{
#region 导航属性
[JsonIgnore]
[ForeignKey("ParentId")]
public ReadingMedicineSystemQuestion ParentQuestion { get; set; }
//// |1|2| 这种保存
// public string CriterionEnumStr { get; set; } = string.Empty;
// [NotMapped]
// public List<int> CriterionEnumList => CriterionEnumStr.Split('|', StringSplitOptions.RemoveEmptyEntries).Where(t => !string.IsNullOrEmpty(t)).Select(t=> Convert.ToInt32(t.Trim()) ).ToList(
#endregion
public CriterionType? CriterionTypeEnum { get; set; }
public bool IsEnable { get; set; }
public bool IsGeneral { get; set; }
public bool IsRequired { get; set; }
public LanguageType LanguageType { get; set; }
public Guid? ParentId { get; set; }
public string ParentTriggerValue { get; set; } = null!;
[StringLength(510)]
public string QuestionName { get; set; } = null!;
public ReadingCategory ReadingCategory { get; set; }
public int ShowOrder { get; set; }
public string Type { get; set; } = null!;
public string TypeValue { get; set; } = null!;
}