NceeBaseLine.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using Microsoft.EntityFrameworkCore;
  2. using System.ComponentModel.DataAnnotations;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. namespace YBEE.EQM.Core;
  5. /// <summary>
  6. /// 高中划线参照划线
  7. /// </summary>
  8. public class NceeBaseLine : DEntityBase
  9. {
  10. /// <summary>
  11. /// 高考分析计划ID
  12. /// </summary>
  13. [Comment("高考分析计划ID")]
  14. [Required]
  15. public int NceePlanId { get; set; }
  16. /// <summary>
  17. /// 首选科目ID
  18. /// </summary>
  19. [Comment("首选科目ID")]
  20. [Required]
  21. public short DirectionCourseId { get; set; }
  22. /// <summary>
  23. /// 划线等级
  24. /// </summary>
  25. [Comment("划线等级")]
  26. [Required, Column(TypeName = "smallint")]
  27. public NceeLineLevel NceeLineLevel { get; set; }
  28. /// <summary>
  29. /// 比例
  30. /// </summary>
  31. [Comment("比例")]
  32. [Required, Column(TypeName = "decimal(10, 8)")]
  33. public decimal LineRate { get; set; } = 0;
  34. /// <summary>
  35. /// 原始分划线分数
  36. /// </summary>
  37. [Comment("原始分划线分数")]
  38. [Required, Column(TypeName = "decimal(10, 2)")]
  39. public decimal LineScore { get; set; } = 0;
  40. /// <summary>
  41. /// 赋分划线分数
  42. /// </summary>
  43. [Comment("赋分划线分数")]
  44. [Required, Column(TypeName = "decimal(10, 2)")]
  45. public decimal LineScoreX { get; set; } = 0;
  46. /// <summary>
  47. /// 一对一引用(高中分析计划)
  48. /// </summary>
  49. public virtual NceePlan NceePlan { get; set; }
  50. }