12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- using SqlSugar;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations.Schema;
- namespace WCS.Entity
- {
- /// <summary>
- /// 设备列表
- /// </summary>
- [SugarTable("WCS_DEVICE", "设备列表")]
- public class WCS_DEVICE
- {
- [SugarColumn(IsPrimaryKey = true, ColumnDescription = "设备编号", Length = 50)]
- public string CODE { get; set; }
- [SugarColumn(Length = 50, ColumnDescription = "设备名称")]
- public string NAME { get; set; }
- [SugarColumn(Length = 50, ColumnDescription = "是否可用")]
- public bool ENABLED { get; set; } = true;
- [SugarColumn(Length = 50, ColumnDescription = "更新者")]
- public string UPDATEUSER { get; set; }
- [SugarColumn(ColumnDescription = "更新时间")]
- public DateTime UPDATETIME { get; set; } = DateTime.Now;
- [SugarColumn(ColumnDescription = "版本")]
- public byte[] VER { get; set; }
- [SugarColumn(ColumnDescription = "读写协议")]
- public int DEVICEPROTOCOLIDS { get; set; }
- [Navigate(NavigateType.OneToMany, nameof(DEVICEPROTOCOLIDS))]
- public List<WCS_DEVICEPROTOCOL> DEVICEPROTOCOLS { get; set; } = new List<WCS_DEVICEPROTOCOL>();
- [SugarColumn()]
- public int DEVICE { get; set; }
- [InverseProperty("DEVICE")]
- public List<WCS_ROUTE> ROUTES { get; set; } = new List<WCS_ROUTE>();
- [InverseProperty("START")]
- public List<WCS_PATH> PATHS { get; set; } = new List<WCS_PATH>();
- /// <summary>
- /// 设备组中的内容
- /// </summary>
- [InverseProperty("GROUP")]
- public List<WCS_GROUPMEMBER> DEVICEGROUP { get; set; } = new List<WCS_GROUPMEMBER>();
- public override string ToString()
- {
- return CODE;
- }
- }
- }
|