修复了添加设备不更新的问题和一些已知的问题

This commit is contained in:
2025-06-30 22:03:49 +08:00
parent a1de03a94e
commit 5e0c530187
9 changed files with 171 additions and 136 deletions

View File

@@ -7,21 +7,23 @@ namespace PMSWPF.Models;
public partial class Device : ObservableObject
{
[ObservableProperty] private string description;
[ObservableProperty]private string description;
[ObservableProperty] private int id;
[ObservableProperty] private string ip;
[ObservableProperty] private bool isActive = 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; }
}