using FreeSql.DataAnnotations; using Newtonsoft.Json; namespace MoviconWebApi.Entities { /// /// 数据记录 /// [Table(Name = "DataReocrd")] public class DataReocrd { /// /// 主键 /// [Column(IsPrimary = true, IsIdentity = true)] public long Id { get; set; } /// /// 设备编号 /// [JsonProperty("DeviceCode")] [Column(Name = "Device_Code", StringLength = 100, IsNullable = true)] public string Device_Code { get; set; } = ""; /// /// 设备名称 /// [JsonProperty("DeviceName")] [Column(Name = "DeviceName", StringLength = 100, IsNullable = true)] public string Device_Name { get; set; } = ""; /// /// 设备厂商 /// [JsonProperty("DeviceManufacturer")] [Column(Name = "Device_Manufacturer", StringLength = 100, IsNullable = true)] public string Device_Manufacturer { get; set; } = ""; /// /// 设备状态, 代码含义自定 /// [JsonProperty("Status")] [Column(Name = "Device_Status", StringLength = 100, IsNullable = true)] public string Device_Status { get; set; } = ""; /// /// 设备错误 /// [JsonProperty("FaultDetails")] [Column(Name = "FaultDetails", StringLength = 100, IsNullable = true)] public string? FaultDetails { get; set; } /// /// 创建时间 /// [Column(ServerTime = DateTimeKind.Local, CanUpdate = false)] public DateTime CreateTime { get; set; } /// /// ///////////////////////////////////////////导航属性/////////////////////////////////////////////////////// /// /// /// 部件信息列表 /// public List? ListComponentsInfo { get; set; } = new List(); /// /// 部件信息列表 /// public List? TestData { get; set; } = new List(); } }