修复错误
This commit is contained in:
@@ -7,7 +7,6 @@ namespace DMS.Infrastructure.Entities;
|
||||
/// <summary>
|
||||
/// 设备实体类,对应数据库中的 Devices 表。
|
||||
/// </summary>
|
||||
[SugarTable("Devices")]
|
||||
public class DbDevice
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -2,7 +2,6 @@ using SqlSugar;
|
||||
|
||||
namespace DMS.Infrastructure.Entities;
|
||||
|
||||
[SugarTable("Menus")]
|
||||
public class DbMenu
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||||
|
||||
@@ -2,7 +2,6 @@ using SqlSugar;
|
||||
|
||||
namespace DMS.Infrastructure.Entities;
|
||||
|
||||
[SugarTable("MqttServers")]
|
||||
public class DbMqttServer
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||||
|
||||
@@ -6,7 +6,6 @@ namespace DMS.Infrastructure.Entities;
|
||||
/// <summary>
|
||||
/// 数据库实体:对应数据库中的 Logs 表,用于存储应用程序日志。
|
||||
/// </summary>
|
||||
[SugarTable("Logs")]
|
||||
public class DbNlog
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace DMS.Infrastructure.Entities;
|
||||
|
||||
[SugarTable("Users")]
|
||||
public class DbUser
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||||
|
||||
@@ -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; }
|
||||
|
||||
@@ -2,7 +2,7 @@ using SqlSugar;
|
||||
|
||||
namespace DMS.Infrastructure.Entities;
|
||||
|
||||
[SugarTable("VariableHistories")]
|
||||
|
||||
public class DbVariableHistory
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||||
|
||||
@@ -5,7 +5,6 @@ namespace DMS.Infrastructure.Entities;
|
||||
/// <summary>
|
||||
/// 数据库实体:对应数据库中的 VariableMqttAliases 表。
|
||||
/// </summary>
|
||||
[SugarTable("VariableMqttAliases")]
|
||||
public class DbVariableMqttAlias
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace DMS.Infrastructure.Entities;
|
||||
|
||||
[SugarTable("VariableTables")]
|
||||
public class DbVariableTable
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||||
|
||||
Reference in New Issue
Block a user