From 19d97026068fd5394da64915e912bf3b9bf44730 Mon Sep 17 00:00:00 2001 From: "2248356998 qq.com" <2248356998@qq.com> Date: Fri, 10 Oct 2025 14:19:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20sqlite=20=E6=89=B9=E9=87=8F=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Realization/Sqlite/SqlBuilder/SqliteFastBuilder.cs | 6 +++++- src/Directory.Build.props | 6 +++--- .../Services/RulesEngine/Helps/RuleHelpers.cs | 9 ++++++++- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/src/Admin/ThingsGateway.SqlSugar/Sugar/Realization/Sqlite/SqlBuilder/SqliteFastBuilder.cs b/src/Admin/ThingsGateway.SqlSugar/Sugar/Realization/Sqlite/SqlBuilder/SqliteFastBuilder.cs index 938a4ede1..d9620f86c 100644 --- a/src/Admin/ThingsGateway.SqlSugar/Sugar/Realization/Sqlite/SqlBuilder/SqliteFastBuilder.cs +++ b/src/Admin/ThingsGateway.SqlSugar/Sugar/Realization/Sqlite/SqlBuilder/SqliteFastBuilder.cs @@ -28,7 +28,11 @@ namespace ThingsGateway.SqlSugar this.Context.Close(); } } - + Task CreateTempAsync(Dictionary)> list) where T : class, new() + { + IsUpdate = true; + return Task.FromResult(string.Empty); + } public Task CreateTempAsync(DataTable dt) where T : class, new() { diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 00eb74656..70cbf2d8f 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -1,9 +1,9 @@ - 10.11.92 - 10.11.92 - 10.11.92 + 10.11.93 + 10.11.93 + 10.11.93 10.11.6 10.11.6 8.0.20 diff --git a/src/Gateway/ThingsGateway.Gateway.Application/Services/RulesEngine/Helps/RuleHelpers.cs b/src/Gateway/ThingsGateway.Gateway.Application/Services/RulesEngine/Helps/RuleHelpers.cs index 472418ff5..4d47b35aa 100644 --- a/src/Gateway/ThingsGateway.Gateway.Application/Services/RulesEngine/Helps/RuleHelpers.cs +++ b/src/Gateway/ThingsGateway.Gateway.Application/Services/RulesEngine/Helps/RuleHelpers.cs @@ -104,7 +104,14 @@ public static class RuleHelpers { if (propertyInfos.TryGetValue(item.Key, out var propertyInfo)) { - propertyInfo.SetValue(nodeModel, item.Value?.ToObject(propertyInfo.PropertyType)); + try + { + propertyInfo.SetValue(nodeModel, item.Value?.ToObject(propertyInfo.PropertyType)); + } + catch (Exception) + { + propertyInfo.SetValue(nodeModel, null); + } } } }