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