将所有的VariableData改为Variable,将DataVariables改为Variables,修复了变量添加MQTT服务器后,服务器列表不更新的问题

This commit is contained in:
2025-07-17 20:13:21 +08:00
parent 6b21c387d5
commit 018fe7c9d0
44 changed files with 410 additions and 407 deletions

View File

@@ -18,7 +18,7 @@ public class DbVariableMqtt
/// <summary>
/// 关联的变量数据ID。
/// </summary>
public int VariableDataId { get; set; }
public int VariableId { get; set; }
/// <summary>
/// 关联的MQTT服务器ID。
@@ -43,8 +43,8 @@ public class DbVariableMqtt
/// <summary>
/// 导航属性:关联的变量数据。
/// </summary>
[Navigate(NavigateType.ManyToOne, nameof(VariableDataId))]
public DbVariableData? VariableData { get; set; }
[Navigate(NavigateType.ManyToOne, nameof(VariableId))]
public DbVariable? Variable { get; set; }
/// <summary>
/// 导航属性关联的MQTT服务器。