using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace YBEE.EQM.Core; /// /// 试卷大题 /// [Comment("试卷大题")] public class ExamPaperQuestionMajor : DEntityBase { /// /// 双向细目表头ID /// [Comment("双向细目表头ID")] [Required] public int ExamPaperId { get; set; } /// /// 顺序 /// [Comment("顺序")] public int Sequence { get; set; } = 0; /// /// 题号 /// [Comment("题号")] [Required, StringLength(20)] public string Number { get; set; } = ""; /// /// 标题 /// [Comment("标题")] [StringLength(100)] public string Title { get; set; } = ""; /// /// 提示语 /// [Comment("提示语")] [StringLength(200)] public string Hint { get; set; } = ""; /// /// 分值 /// [Comment("分值")] [Required, Column(TypeName = "decimal(10, 2)")] public decimal Score { get; set; } = 0; /// /// 备注 /// [Comment("备注")] [StringLength(200)] public string Remark { get; set; } = ""; }