临时提交2
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
using DMS.Core.Enums;
|
||||
using SqlSugar;
|
||||
using SqlSugar.DbConvert;
|
||||
|
||||
namespace DMS.Infrastructure.Entities;
|
||||
|
||||
@@ -18,10 +20,16 @@ public class DbDevice
|
||||
/// 设备名称。
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
/// <summary>
|
||||
/// 设备描述。
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true)]
|
||||
public string Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 设备通信协议类型,对应 ProtocolType 枚举。
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType="varchar(20)",SqlParameterDbType=typeof(EnumToStringConvert))]
|
||||
public ProtocolType Protocol { get; set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -37,16 +45,29 @@ public class DbDevice
|
||||
/// <summary>
|
||||
/// 设备机架号 (针对PLC等设备)。
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true)]
|
||||
public int Rack { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 设备槽号 (针对PLC等设备)。
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true)]
|
||||
public int Slot { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string CpuType { get; set; }
|
||||
/// <summary>
|
||||
/// 设备槽号 (针对PLC等设备)。
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType="varchar(20)",SqlParameterDbType=typeof(EnumToStringConvert))]
|
||||
public DeviceType DeviceType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// OPC UA服务器的URL地址。
|
||||
/// </summary>
|
||||
[SugarColumn(IsNullable = true)]
|
||||
public string OpcUaServerUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user