ExamPaperQuestionMinor.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. using Microsoft.EntityFrameworkCore;
  2. using System.ComponentModel.DataAnnotations;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. namespace YBEE.EQM.Core;
  5. /// <summary>
  6. /// 试卷小题
  7. /// </summary>
  8. [Comment("试卷小题")]
  9. public class ExamPaperQuestionMinor : DEntityBase
  10. {
  11. /// <summary>
  12. /// 双向细目表头ID
  13. /// </summary>
  14. [Comment("双向细目表头ID")]
  15. [Required]
  16. public int ExamPaperId { get; set; }
  17. /// <summary>
  18. /// 题型类别
  19. /// </summary>
  20. [Comment("题型类别")]
  21. [Column(TypeName = "smallint")]
  22. public QuestionCatalog? QuestionCatalog { get; set; }
  23. /// <summary>
  24. /// 大题ID
  25. /// </summary>
  26. [Comment("大题ID")]
  27. public int? ExamPaperQuestionMajorId { get; set; }
  28. /// <summary>
  29. /// 成绩文件列名
  30. /// </summary>
  31. [Comment("成绩文件列名")]
  32. [Required, StringLength(100)]
  33. public string ColumnName { get; set; }
  34. /// <summary>
  35. /// 小题名称
  36. /// </summary>
  37. [Comment("小题名称")]
  38. [Required, StringLength(100)]
  39. public string Name { get; set; }
  40. /// <summary>
  41. /// 顺序
  42. /// </summary>
  43. [Comment("顺序")]
  44. public int Sequence { get; set; } = 0;
  45. /// <summary>
  46. /// 分值
  47. /// </summary>
  48. [Comment("分值")]
  49. [Required, Column(TypeName = "decimal(10, 2)")]
  50. public decimal Score { get; set; } = 0;
  51. /// <summary>
  52. /// 知识模块
  53. /// </summary>
  54. [Comment("知识模块")]
  55. [StringLength(200)]
  56. public string KnowledgeModule { get; set; }
  57. /// <summary>
  58. /// 知识点
  59. /// </summary>
  60. [Comment("知识点")]
  61. [StringLength(200)]
  62. public string KnowledgePoint { get; set; }
  63. /// <summary>
  64. /// 认知能力
  65. /// </summary>
  66. [Comment("认知能力")]
  67. [Column(TypeName = "smallint")]
  68. public CognitiveAbility? CognitiveAbility { get; set; }
  69. /// <summary>
  70. /// 预估难度
  71. /// </summary>
  72. [Comment("预估难度")]
  73. [Required, Column(TypeName = "decimal(10, 2)")]
  74. public decimal EstimatedDifficulty { get; set; } = 0;
  75. /// <summary>
  76. /// 是否选做
  77. /// </summary>
  78. [Comment("是否选做")]
  79. [Required]
  80. public bool IsChoose { get; set; } = false;
  81. /// <summary>
  82. /// 是否最小计分项
  83. /// </summary>
  84. [Comment("是否最小计分项")]
  85. [Required]
  86. public bool IsLeaf { get; set; } = true;
  87. /// <summary>
  88. /// 一对一引用(试卷)
  89. /// </summary>
  90. public virtual ExamPaper ExamPaper { get; set; }
  91. /// <summary>
  92. /// 一对一引用(试卷大题)
  93. /// </summary>
  94. public virtual ExamPaperQuestionMajor ExamPaperQuestionMajor { get; set; }
  95. }