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