AntInfo.cs 955 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using DataSimulation.Repostory;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.ComponentModel.DataAnnotations.Schema;
  6. using System.Linq;
  7. using System.Runtime.Remoting.Metadata.W3cXsd2001;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace DataSimulation.Repostory.Model
  11. {
  12. /// <summary>
  13. /// 天线信息
  14. /// </summary>
  15. [Table("AntInfo")]
  16. public class AntInfo : BaseModel<long>
  17. {
  18. [Display(Name = "天线名称")]
  19. public string AntName { get; set; }
  20. [Display(Name = "天线经度(°)")]
  21. public double AntLon { get; set; }
  22. [Display(Name = "天线纬度(°)")]
  23. public double AntLat { get; set; }
  24. [Display(Name = "天线", AutoGenerateField = false)]
  25. public string Ant
  26. {
  27. get
  28. {
  29. return $"{AntName}[{AntLon},{AntLat}]°";
  30. }
  31. }
  32. }
  33. }