添加了数据库相关了类,和枚举类型相关的类,并且将枚举类型绑定到前段
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using PMSWPF.Enums;
|
||||
using SqlSugar;
|
||||
using SqlSugar.DbConvert;
|
||||
|
||||
namespace PMSWPF.Models;
|
||||
|
||||
@@ -13,8 +16,13 @@ public partial class Device:ObservableObject
|
||||
[ObservableProperty]
|
||||
private string ip ;
|
||||
[ObservableProperty]
|
||||
private bool isActive ;
|
||||
private bool isActive =true;
|
||||
[ObservableProperty]
|
||||
private bool isRuning ;
|
||||
[SugarColumn(ColumnDataType="varchar(20)",SqlParameterDbType=typeof(EnumToStringConvert))]
|
||||
public DeviceType DeviceType { get; set; }
|
||||
|
||||
public List<DataVariable>? DataVariables { get; set; }
|
||||
public ProtocolType ProtocolType { get; set; }
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user