ExamPaperDetail.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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 ExamPaperDetail : DEntityBase
  10. {
  11. /// <summary>
  12. /// 双向细目表头ID
  13. /// </summary>
  14. [Comment("双向细目表头ID")]
  15. [Required]
  16. public int ExamPaperId { get; set; }
  17. /// <summary>
  18. /// 双向细目表头ID
  19. /// </summary>
  20. [Comment("双向细目表头ID")]
  21. [Required, StringLength(50)]
  22. public string LargeQuestionNumber { get; set; }
  23. /// <summary>
  24. /// 双向细目表头ID
  25. /// </summary>
  26. [Comment("双向细目表头ID")]
  27. [StringLength(50)]
  28. public string SubQuestionNumber { get; set; }
  29. /// <summary>
  30. /// 双向细目表头ID
  31. /// </summary>
  32. [Comment("双向细目表头ID")]
  33. [Required, Column(TypeName = "decimal(10, 2)")]
  34. public decimal Score { get; set; } = 0;
  35. /// <summary>
  36. /// 知识模块
  37. /// </summary>
  38. [Comment("知识模块")]
  39. [Required, StringLength(200)]
  40. public string KnowledgeModule { get; set; }
  41. /// <summary>
  42. /// 知识点
  43. /// </summary>
  44. [Comment("知识点")]
  45. [Required, StringLength(200)]
  46. public string KnowledgePoint { get; set; }
  47. /// <summary>
  48. /// 认知能力
  49. /// </summary>
  50. [Comment("认知能力")]
  51. [Required, StringLength(200)]
  52. public string CognitiveAbility { get; set; }
  53. /// <summary>
  54. /// 预估难度
  55. /// </summary>
  56. [Comment("预估难度")]
  57. [Required, Column(TypeName = "decimal(10, 2)")]
  58. public decimal EstimatedDifficulty { get; set; } = 0;
  59. /// <summary>
  60. /// 是否选做
  61. /// </summary>
  62. [Comment("是否选做")]
  63. [Required]
  64. public bool IsChoose { get; set; } = false;
  65. }