ExamScoreRange.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. using Furion.DatabaseAccessor;
  2. using Microsoft.EntityFrameworkCore;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. namespace YBEE.EQM.Core;
  6. /// <summary>
  7. /// 成绩分段配置
  8. /// </summary>
  9. public class ExamScoreRange : IEntity
  10. {
  11. /// <summary>
  12. /// 主键
  13. /// </summary>
  14. [Comment("主键")]
  15. [Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
  16. public int Id { get; set; }
  17. /// <summary>
  18. /// 序
  19. /// </summary>
  20. [Comment("序")]
  21. [Required]
  22. public int Sequence { get; set; }
  23. /// <summary>
  24. /// 类型
  25. /// </summary>
  26. [Comment("类型")]
  27. [Required]
  28. public ExamScoreRangeType Type { get; set; }
  29. /// <summary>
  30. /// 名称
  31. /// </summary>
  32. [Comment("名称")]
  33. [Required, StringLength(100)]
  34. public string Name { get; set; }
  35. /// <summary>
  36. /// 别称
  37. /// </summary>
  38. [Comment("别称")]
  39. [Required, StringLength(100)]
  40. public string NickName { get; set; }
  41. /// <summary>
  42. /// 开始值
  43. /// </summary>
  44. [Comment("开始值")]
  45. [Required, Column(TypeName = "decimal(16, 8)")]
  46. public decimal BeginValue { get; set; }
  47. /// <summary>
  48. /// 包含开始值
  49. /// </summary>
  50. [Comment("包含开始值")]
  51. [Required]
  52. public bool BeginInclude { get; set; }
  53. /// <summary>
  54. /// 结束值
  55. /// </summary>
  56. [Comment("结束值")]
  57. [Required, Column(TypeName = "decimal(16, 8)")]
  58. public decimal EndValue { get; set; }
  59. /// <summary>
  60. /// 包含结束值
  61. /// </summary>
  62. [Comment("包含结束值")]
  63. [Required]
  64. public bool EndInclude { get; set; }
  65. /// <summary>
  66. /// 备注
  67. /// </summary>
  68. [Comment("备注")]
  69. [StringLength(200)]
  70. public string Remark { get; set; }
  71. }