Sys_Cities.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace OASystem.Domain.Entities.System
  7. {
  8. /// <summary>
  9. /// 城市
  10. /// </summary>
  11. public class Sys_Cities:EntityBase
  12. {
  13. /// <summary>
  14. /// 国家Id
  15. /// </summary>
  16. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  17. public int CountriesId { get; set; }
  18. /// <summary>
  19. /// 城市名称 CN
  20. /// </summary>
  21. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  22. public string Name_CN { get; set; }
  23. /// <summary>
  24. /// 城市名称 EN
  25. /// </summary>
  26. [SugarColumn(IsNullable = true, ColumnDataType = "nvarchar(100)")]
  27. public string Name_EN { get; set; }
  28. /// <summary>
  29. /// 父级Id
  30. /// </summary>
  31. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  32. public int ParentId { get; set; }
  33. /// <summary>
  34. /// 城市等级
  35. /// 1 省份 2 城市 3 区县
  36. /// </summary>
  37. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  38. public int Level { get; set; }
  39. /// <summary>
  40. /// 城市三字码
  41. /// </summary>
  42. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(10)")]
  43. public string ThreeCode { get; set; }
  44. /// <summary>
  45. /// 是否为省会城市/首都
  46. /// 0 是 1 否
  47. /// </summary>
  48. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  49. public int IsCapital { get; set; }
  50. }
  51. }