Files
DMS/Models/Device.cs

31 lines
840 B
C#
Raw Normal View History

using CommunityToolkit.Mvvm.ComponentModel;
using PMSWPF.Enums;
using SqlSugar;
using SqlSugar.DbConvert;
2025-06-10 22:13:06 +08:00
namespace PMSWPF.Models;
public partial class Device : ObservableObject
2025-06-10 22:13:06 +08:00
{
[ObservableProperty]private string description;
[ObservableProperty] private int id;
[ObservableProperty] private string ip;
[ObservableProperty] private bool isActive = true;
2025-07-02 22:07:16 +08:00
[ObservableProperty] private bool isAddDefVarTable = true;
[ObservableProperty] private bool isRuning;
[ObservableProperty] private string name;
[SugarColumn(ColumnDataType = "varchar(20)", SqlParameterDbType = typeof(EnumToStringConvert))]
public DeviceType DeviceType { get; set; }
public List<VariableTable>? VariableTables { get; set; }
public ProtocolType ProtocolType { get; set; }
2025-06-10 22:13:06 +08:00
}