NceeScore.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 NceeScore : IEntity
  10. {
  11. /// <summary>
  12. /// 主键
  13. /// </summary>
  14. [Comment("主键")]
  15. [Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
  16. public long Id { get; set; }
  17. /// <summary>
  18. /// 高中分析计划ID
  19. /// </summary>
  20. [Comment("高中分析计划ID")]
  21. [Required]
  22. public int NceePlanId { get; set; }
  23. /// <summary>
  24. /// 高中学生ID
  25. /// </summary>
  26. [Comment("高中学生ID")]
  27. [Required]
  28. public long NceeStudentId { 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 Score { get; set; } = 0;
  41. /// <summary>
  42. /// 赋分
  43. /// </summary>
  44. [Comment("赋分")]
  45. [Required, Column(TypeName = "decimal(10, 2)")]
  46. public decimal ScoreX { get; set; } = 0;
  47. /// <summary>
  48. /// 转换等级ID
  49. /// </summary>
  50. [Comment("转换等级ID")]
  51. public short? NceeConvertGradeId { get; set; }
  52. /// <summary>
  53. /// 转换等级名称
  54. /// </summary>
  55. [Comment("转换等级名称")]
  56. public string NceeConvertGradeName { get; set; }
  57. /// <summary>
  58. /// 一对一引用(高中学生)
  59. /// </summary>
  60. public virtual NceeStudent NceeStudent { get; set; }
  61. }