WCS_DEVICEPROTOCOL.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using SqlSugar;
  2. namespace WCS.Entity
  3. {
  4. /// <summary>
  5. /// DB块读写协议
  6. /// </summary>
  7. [SugarTable(nameof(WCS_DEVICEPROTOCOL), "DB块读写协议")]
  8. public class WCS_DEVICEPROTOCOL : OBJ
  9. {
  10. /// <summary>
  11. /// 设备编号
  12. /// </summary>
  13. [SugarColumn(ColumnDescription = "设备")]
  14. public string DEVICECODE { get; set; }
  15. /// <summary>
  16. /// 设备信息
  17. /// </summary>
  18. [Navigate(NavigateType.OneToOne, nameof(DEVICECODE))]
  19. public WCS_DEVICEHdr DEVICE { get; set; }
  20. /// <summary>
  21. /// DB编号
  22. /// </summary>
  23. [SugarColumn(ColumnDescription = "DB编号")]
  24. public string DATABLOCKCODE { get; set; }
  25. /// <summary>
  26. /// DB信息
  27. /// </summary>
  28. [Navigate(NavigateType.OneToOne, nameof(DATABLOCKCODE))]
  29. public WCS_DATABLOCK DB { get; set; }
  30. /// <summary>
  31. /// 起始位置
  32. /// </summary>
  33. [SugarColumn(ColumnDescription = "起始位置")]
  34. public short POSITION { get; set; }
  35. }
  36. }