NceeConvertRange.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 NceeConvertRange : IEntity
  10. {
  11. /// <summary>
  12. /// 主键
  13. /// </summary>
  14. [Comment("主键")]
  15. [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
  16. public int Id { get; set; }
  17. /// <summary>
  18. /// 高中分析计划ID
  19. /// </summary>
  20. [Comment("高中分析计划ID")]
  21. [Required]
  22. public int NceePlanId { get; set; }
  23. /// <summary>
  24. /// 高中赋分转换等级
  25. /// </summary>
  26. [Comment("高中赋分转换等级")]
  27. [Required]
  28. public short NceeConvertGradeId { get; set; }
  29. /// <summary>
  30. /// 科目ID
  31. /// </summary>
  32. [Comment("科目ID")]
  33. [Required]
  34. public short CourseId { get; set; }
  35. /// <summary>
  36. /// 下限
  37. /// </summary>
  38. [Comment("下限")]
  39. [Required, Column(TypeName = "decimal(10, 2)")]
  40. public decimal MinScore { get; set; }
  41. /// <summary>
  42. /// 上限
  43. /// </summary>
  44. [Comment("上限")]
  45. [Required, Column(TypeName = "decimal(10, 8)")]
  46. public decimal MaxScore { get; set; }
  47. }