using SqlSugar; using System; namespace WCS.Entity { ///// ///// PLC DB块配置表 ///// //[SugarTable(nameof(WCS_PlcDataBlock), "PLC DB块配置表")] //public class WCS_PlcDataBlock : OBJ //{ // /// // /// ID // /// // [SugarColumn(IsIgnore = true)] // [Obsolete] // public override int ID { get; set; } // /// // /// 编号 // /// // [SugarColumn(IsPrimaryKey = true, Length = 20, ColumnDescription = "编号")] // public string Code { get; set; } // /// // /// 名称 // /// // [SugarColumn(Length = 20, ColumnDescription = "名称")] // public string Name { get; set; } // /// // /// 关联PLC信息编号 // /// // [SugarColumn(ColumnDescription = "关联PLC信息编号")] // public string PlcCode { get; set; } // /// // /// 关联PLC信息 // /// // [Navigate(NavigateType.OneToOne, nameof(PlcCode))] // public WCS_PlcSet PLC { get; set; } // /// // /// 西门子:DB520,其它:D0 // /// // [SugarColumn(ColumnDescription = "编号")] // public int NO { get; set; } // /// // /// 总长度 // /// // [SugarColumn(ColumnDescription = "总长度")] // public int Length { get; set; } // /// // /// 结构体长度 // /// // [SugarColumn(ColumnDescription = "结构体长度")] // public int DataLength { get; set; } // /// // /// 协议类型 // /// // [SugarColumn(Length = 200, ColumnDescription = "协议类型")] // public string Protocol { get; set; } // /// // /// 无更新 // /// // [SugarColumn(ColumnDescription = "无更新")] // public bool NoUpDate { get; set; } // public Type GetProtocolType() // { // return Type.GetType(Protocol); // } //} }