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#

9 months ago
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)]
9 months ago
public class DeviceError
{
/// <summary>
/// 编号
/// </summary>
[SugarColumn(IsPrimaryKey = true, Length = 50, ColumnDescription = "编号")]
9 months ago
public string? Id { get; set; }
/// <summary>
/// 设备编号
/// </summary>
[SugarColumn(IsPrimaryKey = true, Length = 50, ColumnDescription = "设备编号")]
9 months ago
public string? DeviceId { get; set; }
/// <summary>
/// 错误代码
/// </summary>
[SugarColumn(IsNullable = true, ColumnDescription = "错误代码", Length = 20)]
9 months ago
public string? ErrCode { get; set; }
/// <summary>
/// 错误信息
/// </summary>
[SugarColumn(IsNullable = true, ColumnDescription = "错误信息", Length = 200)]
9 months ago
public string? ErrMsg { get; set; }
/// <summary>
/// 结束日期
/// </summary>
[SugarColumn(IsNullable = true, ColumnDescription = "结束日期")]
9 months ago
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; }
9 months ago
}
}