SatInfo.cs 873 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace XzXdDw.App.Model
  9. {
  10. [Table("SatInfo")]
  11. public class SatInfo : BaseModel
  12. {
  13. [Display(Name = "卫星编号")]
  14. public int SatCode { get; set; }
  15. [Display(Name = "卫星名称")]
  16. public string SatName { get; set; }
  17. [Display(Name = "轨道经度")]
  18. public double? SatLon { get; set; }
  19. [Display(Name = "卫星")]
  20. public string Sat
  21. {
  22. get
  23. {
  24. if (SatLon == null)
  25. return $"{SatName}({SatCode})";
  26. else
  27. return $"[{SatLon}°]{SatName}({SatCode})";
  28. }
  29. }
  30. }
  31. }