SchoolClassStudent.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. using Microsoft.EntityFrameworkCore;
  2. using System.ComponentModel.DataAnnotations;
  3. namespace YBEE.EQM.Core;
  4. /// <summary>
  5. /// 班级学生
  6. /// </summary>
  7. [Comment("班级学生")]
  8. public class SchoolClassStudent : DEntityBase
  9. {
  10. /// <summary>
  11. /// 机构ID
  12. /// </summary>
  13. [Comment("机构ID")]
  14. [Required]
  15. public short SysOrgId { get; set; }
  16. /// <summary>
  17. /// 班级ID
  18. /// </summary>
  19. [Comment("班级ID")]
  20. [Required]
  21. public long SchoolClassId { get; set; }
  22. /// <summary>
  23. /// 人员ID
  24. /// </summary>
  25. [Comment("人员ID")]
  26. public int PersonId { get; set; }
  27. /// <summary>
  28. /// 学籍号
  29. /// </summary>
  30. [Comment("学籍号")]
  31. [StringLength(100)]
  32. public string StudentNumber { get; set; } = "";
  33. /// <summary>
  34. /// 高中选科组合ID
  35. /// </summary>
  36. [Comment("高中选科组合ID")]
  37. public short? CourseCombId { get; set; }
  38. /// <summary>
  39. /// 一对一引用(机构)
  40. /// </summary>
  41. public virtual SysOrg SysOrg { get; set; }
  42. /// <summary>
  43. /// 一对一引用(学校班级)
  44. /// </summary>
  45. public virtual SchoolClass SchoolClass { get; set; }
  46. /// <summary>
  47. /// 一对一引用(人员)
  48. /// </summary>
  49. public virtual Person Person { get; set; }
  50. /// <summary>
  51. /// 一对一引用(高中选科组合)
  52. /// </summary>
  53. public virtual CourseComb CourseComb { get; set; }
  54. }