实现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

@@ -90,6 +90,6 @@ public class DbMqtt
/// <summary>
/// 关联的变量数据列表。
/// </summary>
[Navigate(typeof(DbVariableDataMqtt), "MqttId", "VariableDataId")]
public List<DbVariableData>? VariableDatas { get; set; }
[Navigate(NavigateType.OneToMany, nameof(DbVariableMqtt.MqttId))]
public List<DbVariableMqtt>? VariableMqtts { get; set; }
}