平安校园
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.

MajorInfo.cs 1.4 KiB

1 月之前
2 月之前
123456789101112131415161718192021222324252627282930313233343536373839
  1. namespace SafeCampus.System;
  2. [SugarTable("MajorInfo", TableDescription = "专业信息表")]
  3. [Tenant(SqlSugarConst.DB_DEFAULT)]
  4. [BatchEdit]
  5. [CodeGen]
  6. [IgnoreInitTable]
  7. public class MajorInfo : PrimaryKeyEntity
  8. {
  9. /// <summary>
  10. /// 专业名称
  11. /// </summary>
  12. [SugarColumn(ColumnName = "Name", ColumnDescription = "专业名称", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = false)]
  13. public string Name { get; set; }
  14. /// <summary>
  15. /// 专业编码
  16. /// </summary>
  17. [SugarColumn(ColumnName = "Code", ColumnDescription = "专业编码", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = false)]
  18. public string Code { get; set; }
  19. /// <summary>
  20. /// 专业简介
  21. /// </summary>
  22. [SugarColumn(ColumnName = "Introduce", ColumnDescription = "专业简介", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  23. public string Introduce { get; set; }
  24. /// <summary>
  25. /// 院系id
  26. /// </summary>
  27. [SugarColumn(ColumnName = "DepId", ColumnDescription = "院系id",IsNullable = false)]
  28. public long DepId { get; set; }
  29. /// <summary>
  30. /// 排序
  31. /// </summary>
  32. [SugarColumn(ColumnName = "Sort", ColumnDescription = "排序", IsNullable = false)]
  33. public int Sort { get; set; }
  34. /// <summary>
  35. /// 院系信息
  36. /// </summary>
  37. [Navigate(NavigateType.OneToOne, nameof(DepId))]
  38. public DepartmentInfo DepartmentInfoItem { get; set; }
  39. }