ExamPaperQuestionMajor.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 ExamPaperQuestionMajor : 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. public int Sequence { get; set; } = 0;
  22. /// <summary>
  23. /// 题号
  24. /// </summary>
  25. [Comment("题号")]
  26. [Required, StringLength(20)]
  27. public string Number { get; set; } = "";
  28. /// <summary>
  29. /// 标题
  30. /// </summary>
  31. [Comment("标题")]
  32. [StringLength(100)]
  33. public string Title { get; set; } = "";
  34. /// <summary>
  35. /// 提示语
  36. /// </summary>
  37. [Comment("提示语")]
  38. [StringLength(200)]
  39. public string Hint { get; set; } = "";
  40. /// <summary>
  41. /// 分值
  42. /// </summary>
  43. [Comment("分值")]
  44. [Required, Column(TypeName = "decimal(10, 2)")]
  45. public decimal Score { get; set; } = 0;
  46. /// <summary>
  47. /// 备注
  48. /// </summary>
  49. [Comment("备注")]
  50. [StringLength(200)]
  51. public string Remark { get; set; } = "";
  52. }