修改画面
This commit is contained in:
@@ -5,6 +5,13 @@ namespace DMS.Core.Interfaces.Repositories
|
||||
{
|
||||
public interface IVariableRepository:IBaseRepository<Variable>
|
||||
{
|
||||
/// <summary>
|
||||
/// 异步根据变量表ID删除变量。
|
||||
/// </summary>
|
||||
/// <param name="variableTableId">变量表的唯一标识符。</param>
|
||||
/// <returns>受影响的行数。</returns>
|
||||
Task<int> DeleteByVariableTableIdAsync(int variableTableId);
|
||||
|
||||
/// <summary>
|
||||
/// 异步根据OPC UA NodeId获取单个变量实体。
|
||||
/// </summary>
|
||||
|
||||
@@ -6,5 +6,12 @@ namespace DMS.Core.Interfaces.Repositories
|
||||
public interface IVariableTableRepository:IBaseRepository<VariableTable>
|
||||
{
|
||||
Task<int> DeleteByDeviceIdAsync(int deviceId);
|
||||
|
||||
/// <summary>
|
||||
/// 异步根据ID获取单个变量表。
|
||||
/// </summary>
|
||||
/// <param name="id">变量表的唯一标识符。</param>
|
||||
/// <returns>对应的变量表实体,如果不存在则为null。</returns>
|
||||
Task<List<VariableTable>> GetByDeviceIdAsync(int deviceId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user