12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- using SqlSugar;
- namespace WCS.Entity
- {
- [SugarTable("WCS_PLC")]
- public class WCS_PLC : OBJ
- {
- [SugarColumn(IsIgnore = true)]
- public override int ID { get; set; }
- [SugarColumn(IsPrimaryKey = true, ColumnDescription = "编号", Length = 20)]
- public string CODE { get; set; }
- [SugarColumn(ColumnDescription = "名称", Length = 20)]
- public string NAME { get; set; }
- [SugarColumn(ColumnDescription = "IP", Length = 20)]
- public string IP { get; set; }
- [SugarColumn(ColumnDescription = "端口", Length = 20)]
- public int PORT { get; set; } = 102;
- [SugarColumn(ColumnDescription = "插槽号", Length = 20)]
- public int SLOT { get; set; }
- [SugarColumn(ColumnDescription = "机架号", Length = 20)]
- public int RACK { get; set; }
- [SugarColumn(ColumnDescription = "厂商", Length = 20)]
- public PLCType TYPE { get; set; }
- [SugarColumn(ColumnDescription = "型号", Length = 10)]
- public string MODEL { get; set; }
- }
- public enum PLCType
- {
- 西门子 = 1,
- 三菱 = 2,
- AB = 3,
- 欧姆龙 = 4,
- }
- }
|