School.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using MessagePack;
  2. using Microsoft.WindowsAzure.Storage.Table;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Text;
  6. using TEAMModelOS.SDK.Context.Attributes.Table;
  7. namespace TEAMModelOS.Model.Common.Models
  8. {
  9. [TableSpace(Name = "Common")]
  10. [MessagePackObject(keyAsPropertyName: true)]
  11. public class School :TableEntity
  12. {
  13. [Key("code")]
  14. public string Code { get; set; }
  15. [Key("name")]
  16. public string Name { get; set; }
  17. [Key("countryId")]
  18. public string CountryId { get; set; }
  19. [Key("countryName")]
  20. public string CountryName { get; set; }
  21. [Key("provinceId")]
  22. public string ProvinceId { get; set; }
  23. [Key("provinceName")]
  24. public string ProvinceName { get; set; }
  25. [Key("cityId")]
  26. public string CityId { get; set; }
  27. [Key("cityName")]
  28. public string CityName { get; set; }
  29. [Key("address")]
  30. public string Address { get; set; }
  31. [Key("typeId")]
  32. public string TypeId { get; set; }
  33. [Key("typeName")]
  34. public string TypeName { get; set; }
  35. [Key("source")]
  36. public string Source { get; set; }
  37. [Key("distId")]
  38. public string DistId { get; set; }
  39. [Key("distName")]
  40. public string DistName { get; set; }
  41. [Key("schoolDist")]
  42. public string SchoolDist { get; set; }
  43. [Key("aliasName")]
  44. public string AliasName { get; set; }
  45. [Key("shortCode")]
  46. public string ShortCode { get; set; }
  47. }
  48. }