using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace YBEE.EQM.Core; /// /// 试卷小题 /// [Comment("试卷小题")] public class ExamPaperQuestionMinor : DEntityBase { /// /// 双向细目表头ID /// [Comment("双向细目表头ID")] [Required] public int ExamPaperId { get; set; } /// /// 题型类别 /// [Comment("题型类别")] [Column(TypeName = "smallint")] public QuestionCatalog? QuestionCatalog { get; set; } /// /// 大题ID /// [Comment("大题ID")] public int? ExamPaperQuestionMajorId { get; set; } /// /// 成绩文件列名 /// [Comment("成绩文件列名")] [Required, StringLength(100)] public string ColumnName { get; set; } /// /// 小题名称 /// [Comment("小题名称")] [Required, StringLength(100)] public string Name { get; set; } /// /// 顺序 /// [Comment("顺序")] public int Sequence { get; set; } = 0; /// /// 分值 /// [Comment("分值")] [Required, Column(TypeName = "decimal(10, 2)")] public decimal Score { get; set; } = 0; /// /// 知识模块 /// [Comment("知识模块")] [StringLength(200)] public string KnowledgeModule { get; set; } /// /// 知识点 /// [Comment("知识点")] [StringLength(200)] public string KnowledgePoint { get; set; } /// /// 认知能力 /// [Comment("认知能力")] [Column(TypeName = "smallint")] public CognitiveAbility? CognitiveAbility { get; set; } /// /// 预估难度 /// [Comment("预估难度")] [Required, Column(TypeName = "decimal(10, 2)")] public decimal EstimatedDifficulty { get; set; } = 0; /// /// 是否选做 /// [Comment("是否选做")] [Required] public bool IsChoose { get; set; } = false; /// /// 是否最小计分项 /// [Comment("是否最小计分项")] [Required] public bool IsLeaf { get; set; } = true; /// /// 一对一引用(试卷) /// public virtual ExamPaper ExamPaper { get; set; } /// /// 一对一引用(试卷大题) /// public virtual ExamPaperQuestionMajor ExamPaperQuestionMajor { get; set; } }