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); + } } } }