1,重新梳理了代码,将使用多线程,并实现了批量读取变量
2,添加OpcUa更新方式的修改对话框 3,修复了一些已知的Bug 4,删除了不必要的函数
This commit is contained in:
@@ -181,16 +181,8 @@ public class VarDataRepository
|
||||
/// <returns></returns>
|
||||
public async Task<int> UpdateAsync(List<VariableData> variableDatas)
|
||||
{
|
||||
Stopwatch stopwatch = new Stopwatch();
|
||||
stopwatch.Start();
|
||||
using (var _db = DbContext.GetInstance())
|
||||
{
|
||||
var result = await UpdateAsync(variableDatas, _db);
|
||||
|
||||
stopwatch.Stop();
|
||||
NlogHelper.Info($"更新VariableData {variableDatas.Count()}个 耗时:{stopwatch.ElapsedMilliseconds}ms");
|
||||
return result;
|
||||
}
|
||||
using var _db = DbContext.GetInstance();
|
||||
return await UpdateAsync(variableDatas, _db);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user