You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.5 KiB
C#

using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LanShengModel
{
[SugarTable("LS_DeviceError_{year}{month}{day}")]
[SplitTable(SplitType.Week)]
public class DeviceError
{
/// <summary>
/// 编号
/// </summary>
[SugarColumn(IsPrimaryKey = true, Length = 50, ColumnDescription = "编号")]
public string? Id { get; set; }
/// <summary>
/// 设备编号
/// </summary>
[SugarColumn(IsPrimaryKey = true, Length = 50, ColumnDescription = "设备编号")]
public string? DeviceId { get; set; }
/// <summary>
/// 错误代码
/// </summary>
[SugarColumn(IsNullable = true, ColumnDescription = "错误代码", Length = 20)]
public string? ErrCode { get; set; }
/// <summary>
/// 错误信息
/// </summary>
[SugarColumn(IsNullable = true, ColumnDescription = "错误信息", Length = 200)]
public string? ErrMsg { get; set; }
/// <summary>
/// 结束日期
/// </summary>
[SugarColumn(IsNullable = true, ColumnDescription = "结束日期")]
public DateTime? EndDate { get; set; }
[SplitField]
[SugarColumn(IsNullable = true)]
public DateTime? CreateDate { get; set; }
[SugarColumn(IsIgnore = true)]
public string? CountDate { get; set; }
[SugarColumn(IsIgnore = true)]
public int? Count { get; set; }
}
}