CourseComb.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. using Furion.DatabaseAccessor;
  2. using Microsoft.EntityFrameworkCore;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. using System.ComponentModel.DataAnnotations;
  5. namespace YBEE.EQM.Core;
  6. /// <summary>
  7. /// 高中选科组合
  8. /// </summary>
  9. [Comment("高中选科组合")]
  10. [Table("base_course_comb")]
  11. public class CourseComb : IEntity
  12. {
  13. /// <summary>
  14. /// 主键
  15. /// </summary>
  16. [Comment("主键")]
  17. [Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
  18. public short Id { get; set; }
  19. /// <summary>
  20. /// 首选科目ID
  21. /// </summary>
  22. [Comment("首选科目ID")]
  23. [Required]
  24. public short FirstCourseId { get; set; }
  25. /// <summary>
  26. /// 再选科目1ID
  27. /// </summary>
  28. [Comment("再选科目1ID")]
  29. [Required]
  30. public short SecondCourseId { get; set; }
  31. /// <summary>
  32. /// 再选科目2ID
  33. /// </summary>
  34. [Comment("再选科目2ID")]
  35. [Required]
  36. public short ThirdCourseId { get; set; }
  37. /// <summary>
  38. /// 名称
  39. /// </summary>
  40. [Comment("名称")]
  41. [Required]
  42. public string Name { get; set; }
  43. /// <summary>
  44. /// 简称
  45. /// </summary>
  46. [Comment("简称")]
  47. [Required]
  48. public string ShortName { get; set; }
  49. /// <summary>
  50. /// 一对一引用(首选科目)
  51. /// </summary>
  52. public virtual Course FirstCourse { get; set; }
  53. /// <summary>
  54. /// 一对一引用(再选科目1)
  55. /// </summary>
  56. public virtual Course SecondCourse { get; set; }
  57. /// <summary>
  58. /// 一对一引用(再选科目2)
  59. /// </summary>
  60. public virtual Course ThirdCourse { get; set; }
  61. }