NceeCourseLineScore.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 NceeCourseLineScore : 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, Column(TypeName = "smallint")]
  28. public NceeLineLevel NceeLineLevel { get; set; }
  29. /// <summary>
  30. /// 首选科目ID
  31. /// </summary>
  32. [Comment("首选科目ID")]
  33. public short DirectionCourseId { get; set; }
  34. /// <summary>
  35. /// 科目ID
  36. /// </summary>
  37. [Comment("科目ID")]
  38. [Required]
  39. public short CourseId { get; set; }
  40. /// <summary>
  41. /// 原始划线分
  42. /// </summary>
  43. [Comment("原始划线分")]
  44. [Required, Column(TypeName = "decimal(10, 2)")]
  45. public decimal LineScore { get; set; } = 0;
  46. /// <summary>
  47. /// 赋分划线分
  48. /// </summary>
  49. [Comment("赋分划线分")]
  50. [Required, Column(TypeName = "decimal(10, 2)")]
  51. public decimal LineScoreX { get; set; } = 0;
  52. }