NceeConvertGrade.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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 NceeConvertGrade : IEntity
  10. {
  11. /// <summary>
  12. /// 主键
  13. /// </summary>
  14. [Comment("主键")]
  15. [Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
  16. public short Id { get; set; }
  17. /// <summary>
  18. /// 名称
  19. /// </summary>
  20. [Comment("名称")]
  21. [Required, StringLength(50)]
  22. public string Name { get; set; }
  23. /// <summary>
  24. /// 序
  25. /// </summary>
  26. [Comment("序")]
  27. [Required]
  28. public short Sequence { get; set; } = 0;
  29. /// <summary>
  30. /// 占比
  31. /// </summary>
  32. [Comment("占比")]
  33. [Required, Column(TypeName = "decimal(10, 8)")]
  34. public decimal Rate { get; set; }
  35. /// <summary>
  36. /// 起始比例
  37. /// </summary>
  38. [Comment("起始比例")]
  39. [Required, Column(TypeName = "decimal(10, 8)")]
  40. public decimal BeginRate { get; set; }
  41. /// <summary>
  42. /// 结束比例
  43. /// </summary>
  44. [Comment("结束比例")]
  45. [Required, Column(TypeName = "decimal(10, 8)")]
  46. public decimal EndRate { get; set; }
  47. /// <summary>
  48. /// 下限分数
  49. /// </summary>
  50. [Comment("下限分数")]
  51. [Required, Column(TypeName = "decimal(10, 2)")]
  52. public decimal MinScore { get; set; }
  53. /// <summary>
  54. /// 上限分数
  55. /// </summary>
  56. [Comment("上限分数")]
  57. [Required, Column(TypeName = "decimal(10, 2)")]
  58. public decimal MaxScore { get; set; }
  59. /// <summary>
  60. /// 备注
  61. /// </summary>
  62. [Comment("备注")]
  63. [StringLength(200)]
  64. public string Remark { get; set; }
  65. }