修复错误

This commit is contained in:
2025-07-21 22:02:42 +08:00
parent 525c681b6c
commit 8f3543afb5
33 changed files with 428 additions and 260 deletions

View File

@@ -7,7 +7,6 @@ namespace DMS.Infrastructure.Entities;
/// <summary>
/// 设备实体类,对应数据库中的 Devices 表。
/// </summary>
[SugarTable("Devices")]
public class DbDevice
{
/// <summary>

View File

@@ -2,7 +2,6 @@ using SqlSugar;
namespace DMS.Infrastructure.Entities;
[SugarTable("Menus")]
public class DbMenu
{
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]

View File

@@ -2,7 +2,6 @@ using SqlSugar;
namespace DMS.Infrastructure.Entities;
[SugarTable("MqttServers")]
public class DbMqttServer
{
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]

View File

@@ -6,7 +6,6 @@ namespace DMS.Infrastructure.Entities;
/// <summary>
/// 数据库实体:对应数据库中的 Logs 表,用于存储应用程序日志。
/// </summary>
[SugarTable("Logs")]
public class DbNlog
{
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]

View File

@@ -2,7 +2,6 @@
namespace DMS.Infrastructure.Entities;
[SugarTable("Users")]
public class DbUser
{
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]

View File

@@ -2,7 +2,6 @@
namespace DMS.Infrastructure.Entities;
[SugarTable("Variables")]
public class DbVariable
{
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
@@ -13,6 +12,7 @@ public class DbVariable
public int PollLevel { get; set; } // 对应 PollLevelType 枚举
public bool IsActive { get; set; }
public int VariableTableId { get; set; }
public string S7Address { get; set; }
public string OpcUaNodeId { get; set; }
public bool IsHistoryEnabled { get; set; }
public double HistoryDeadband { get; set; }

View File

@@ -2,7 +2,7 @@ using SqlSugar;
namespace DMS.Infrastructure.Entities;
[SugarTable("VariableHistories")]
public class DbVariableHistory
{
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]

View File

@@ -5,7 +5,6 @@ namespace DMS.Infrastructure.Entities;
/// <summary>
/// 数据库实体:对应数据库中的 VariableMqttAliases 表。
/// </summary>
[SugarTable("VariableMqttAliases")]
public class DbVariableMqttAlias
{
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]

View File

@@ -2,7 +2,6 @@
namespace DMS.Infrastructure.Entities;
[SugarTable("VariableTables")]
public class DbVariableTable
{
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]