实现变量和Mqtt多对多的配置
This commit is contained in:
19
Data/Entities/DbVariableDataMqtt.cs
Normal file
19
Data/Entities/DbVariableDataMqtt.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using SqlSugar;
|
||||
|
||||
namespace PMSWPF.Data.Entities;
|
||||
|
||||
[SugarTable("VariableDataMqtt")]
|
||||
public class DbVariableDataMqtt
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true)]
|
||||
public int VariableDataId { get; set; }
|
||||
|
||||
[SugarColumn(IsPrimaryKey = true)]
|
||||
public int MqttId { get; set; }
|
||||
|
||||
[Navigate(NavigateType.ManyToOne, nameof(VariableDataId))]
|
||||
public DbVariableData VariableData { get; set; }
|
||||
|
||||
[Navigate(NavigateType.ManyToOne, nameof(MqttId))]
|
||||
public DbMqtt Mqtt { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user