重构CpuType

This commit is contained in:
2025-07-27 21:58:50 +08:00
parent 8b9b096df9
commit 824c3e4df6
12 changed files with 149 additions and 33 deletions

View File

@@ -56,8 +56,8 @@ public class DbDevice
/// <summary>
///
/// </summary>
[SugarColumn(IsNullable = true)]
public string CpuType { get; set; }
[SugarColumn(ColumnDataType="varchar(20)",SqlParameterDbType=typeof(EnumToStringConvert))]
public CpuType CpuType { get; set; }
/// <summary>
/// 设备槽号 (针对PLC等设备)。
/// </summary>