using SqlSugar; using System; namespace WMS.Core { /// /// WCS_DATABLOCK /// [SugarTable("wcs_datablock")] public class WcsDatablockEntity { /// /// /// [SugarColumn(ColumnName = "CODE", IsPrimaryKey = true)] public string Code { get; set; } /// /// /// [SugarColumn(ColumnName = "NAME")] public string Name { get; set; } /// /// /// [SugarColumn(ColumnName = "PLCCODE")] public string Plccode { get; set; } /// /// /// [SugarColumn(ColumnName = "NO")] public int? No { get; set; } /// /// /// [SugarColumn(ColumnName = "LENGTH")] public int? Length { get; set; } /// /// /// [SugarColumn(ColumnName = "DATALENGTH")] public int? Datalength { get; set; } /// /// /// [SugarColumn(ColumnName = "PROTOCOL")] public string Protocol { get; set; } /// /// /// [SugarColumn(ColumnName = "NOUPDATE")] public bool Noupdate { get; set; } /// /// /// [SugarColumn(ColumnName = "ENABLED")] public bool Enabled { get; set; } /// /// /// [SugarColumn(ColumnName = "UPDATEUSER")] public string Updateuser { get; set; } /// /// /// [SugarColumn(ColumnName = "UPDATETIME")] public DateTime Updatetime { get; set; } = DateTime.Now; /// /// /// [SugarColumn( IsEnableUpdateVersionValidation = true,//标识版本字段 IsOnlyIgnoreInsert = true,//禁止插入 IsOnlyIgnoreUpdate = true,//禁止更新 ColumnName = "VER", ColumnDataType = "timestamp" //时间戳类型,有些库需要配置或者有差异 )] public DateTime Ver { get; set; } } }