Files
DMS/DMS.Core/Models/VariableTable.cs

19 lines
558 B
C#
Raw Normal View History

using DMS.Core.Enums;
using System.Collections.Generic;
2025-07-19 09:25:01 +08:00
namespace DMS.Core.Models;
2025-07-03 13:17:25 +08:00
/// <summary>
/// 组织和管理一组相关的变量。
2025-07-03 13:17:25 +08:00
/// </summary>
public class VariableTable
{
2025-07-03 13:17:25 +08:00
public int Id { get; set; }
2025-07-19 09:25:01 +08:00
public string Name { get; set; }
public string Description { get; set; }
public bool IsActive { get; set; } // 是否启用
public int DeviceId { get; set; }
public Device Device { get; set; }
public ProtocolType Protocol { get; set; } // 通讯协议
public List<Variable> Variables { get; set; } = new();
}