实现MQTT关联变量的别名问题,实现了,同个变量发给不同的MQTT服务器的名称不同

This commit is contained in:
2025-07-17 17:28:12 +08:00
parent aea7a21d57
commit 6b21c387d5
14 changed files with 238 additions and 130 deletions

View File

@@ -161,8 +161,8 @@ public class DbVariableData
/// <summary>
/// 关联的MQTT配置列表。
/// </summary>
[Navigate(typeof(DbVariableDataMqtt), "VariableDataId", "MqttId")]
public List<DbMqtt>? Mqtts { get; set; }
[Navigate(NavigateType.OneToMany, nameof(DbVariableMqtt.VariableDataId))]
public List<DbVariableMqtt>? VariableMqtts { get; set; }
/// <summary>
/// 关联的历史记录列表。