using Microsoft.EntityFrameworkCore;
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 DW5S.Entity
{
///
/// 星历信息表
///
[Index(nameof(SatName), nameof(TimeUTC), nameof(Lon))]
public class XlInfo : BaseEntity
{
///
/// 卫星编号
///
public int SatCode { get; set; }
///
/// 卫星名称
///
public string SatName { get; set; }
///
/// 卫星
///
public string Sat => $"{SatName}({SatCode})";
///
/// 发布时间(UTC)
///
public DateTime TimeUTC { get; set; }
///
/// 轨道经度
///
public double? Lon { get; set; }
///
/// 双行根数1
///
public string Line1 { get; set; }
///
/// 双行根数2
///
public string Line2 { get; set; }
///
/// 双行根数
///
public string TwoLine => $"{Line1};{Line2}";
}
}