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

29 lines
1.0 KiB

  1. namespace SafeCampus.System;
  2. [SugarTable("DormitoryInfo", TableDescription = "学生寝室表")]
  3. [Tenant(SqlSugarConst.DB_DEFAULT)]
  4. [BatchEdit]
  5. [CodeGen]
  6. //[IgnoreInitTable]
  7. public class DormitoryInfo : 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 = "Gender", ColumnDescription = "寝室类型", IsNullable = false)]
  18. public bool Gender { get; set; }
  19. /// <summary>
  20. /// 人员列表
  21. /// </summary>
  22. [Navigate(NavigateType.OneToMany, nameof(PersonInfo.DormitoryId))]
  23. public List<PersonInfo> PersonInfos { get; set; }
  24. /// <summary>
  25. /// 创建时间
  26. /// </summary>
  27. [SugarColumn(ColumnName = "CreateTime", ColumnDescription = "创建时间", IsNullable = true)]
  28. public DateTime CreateTime { get; set; }
  29. }