1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- 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 XdCxRhDW.Entity
- {
- [Table("XlInfo")]
- [IndexCombined(nameof(XlInfo.SatCode), nameof(XlInfo.TimeUTC))]//创建组合索引加速多个条件的查询
- public class XlInfo : BaseEntity
- {
- [Display(Name = "卫星编号", AutoGenerateField = false)]
- [Index]
- public int SatCode { get; set; }
- [Display(Name = "卫星名称", AutoGenerateField = false)]
- public string SatName { get; set; }
- [Display(Name = "卫星")]
- public string Sat => $"{SatName}({SatCode})";
- [Display(Name = "发布时间(UTC)")]
- [IndexAttribute]
- public DateTime TimeUTC { get; set; }
- [Display(Name = "轨道经度")]
- [Index]
- public double? Lon { get; set; }
- [Display(Name = "双行根数1")]
- public string Line1 { get; set; }
- [Display(Name = "双行根数2")]
- public string Line2 { get; set; }
- [Display(AutoGenerateField = false)]
- public string TwoLine => $"{Line1};{Line2}";
- }
- }
|