using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
namespace WCS.Entity
{
///
/// 设备列表
///
[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 DEVICEPROTOCOLS { get; set; } = new List();
[SugarColumn()]
public int DEVICE { get; set; }
[InverseProperty("DEVICE")]
public List ROUTES { get; set; } = new List();
[InverseProperty("START")]
public List PATHS { get; set; } = new List();
///
/// 设备组中的内容
///
[InverseProperty("GROUP")]
public List DEVICEGROUP { get; set; } = new List();
public override string ToString()
{
return CODE;
}
}
}