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

CameraGroup.cs 972 B

4 kuukautta sitten
3 kuukautta sitten
4 kuukautta sitten
1234567891011121314151617181920212223242526272829
  1. namespace SafeCampus.System;
  2. [SugarTable("CameraGroup", TableDescription = "摄像头分组表")]
  3. [Tenant(SqlSugarConst.DB_DEFAULT)]
  4. [BatchEdit]
  5. [CodeGen]
  6. [IgnoreInitTable]
  7. public class CameraGroup : 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. /// 父级id
  16. /// </summary>
  17. [SugarColumn(ColumnName = "ParentId", ColumnDescription = "父级id", IsNullable = true)]
  18. public long ParentId { get; set; }
  19. /// <summary>
  20. /// 子级
  21. /// </summary>
  22. [SugarColumn(IsIgnore = true)]
  23. public List<CameraGroup> Children { get; set; }
  24. /// <summary>
  25. /// 摄像头列表
  26. /// </summary>
  27. [Navigate(NavigateType.OneToMany, nameof(CameraInfo.GroupId))]
  28. public List<CameraInfo> CameraInfos { get; set; }
  29. }