平安校园
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

34 lines
1.2 KiB

  1. namespace SafeCampus.System;
  2. [SugarTable("PersonSetInfo", TableDescription = "班级信息表")]
  3. [Tenant(SqlSugarConst.DB_DEFAULT)]
  4. [BatchEdit]
  5. [CodeGen]
  6. //[IgnoreInitTable]
  7. public class PersonSetInfo
  8. {
  9. /// <summary>
  10. /// 班级id
  11. /// </summary>
  12. [SugarColumn(ColumnDescription = "班级id", IsPrimaryKey = true)]
  13. public string PersonSetId { get; set; }
  14. /// <summary>
  15. /// 班级名称
  16. /// </summary>
  17. [SugarColumn(ColumnName = "PersonSetName", ColumnDescription = "班级名称", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = false)]
  18. public string PersonSetName { get; set; }
  19. /// <summary>
  20. /// 专业id
  21. /// </summary>
  22. [SugarColumn(ColumnName = "MajorId", ColumnDescription = "专业id", IsNullable = false)]
  23. public long MajorId { get; set; }
  24. /// <summary>
  25. /// 专业信息
  26. /// </summary>
  27. [Navigate(NavigateType.OneToOne, nameof(MajorId))]
  28. public MajorInfo MajorInfoItem { get; set; }
  29. /// <summary>
  30. /// 班主任信息
  31. /// </summary>
  32. [Navigate(NavigateType.OneToOne, nameof(ClassTeacher.PersonSetId),nameof(PersonSetId))]
  33. public ClassTeacher ClassTeacherItem { get; set; }
  34. }