using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; namespace XzXdDw.App.Model { [Table("SatInfo")] public class SatInfo : BaseModel { [Display(Name = "卫星编号")] public int SatCode { get; set; } [Display(Name = "卫星名称")] public string SatName { get; set; } [Display(Name = "轨道经度")] public double? SatLon { get; set; } [Display(Name = "卫星")] public string Sat { get { if (SatLon == null) return $"{SatName}({SatCode})"; else return $"[{SatLon}°]{SatName}({SatCode})"; } } } }