平安校园
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

PersonSetInfo.cs 1.2 KiB

3ヶ月前
1ヶ月前
3ヶ月前
2ヶ月前
3ヶ月前
12345678910111213141516171819202122232425262728293031323334
  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. }