fix: sqlite 批量更新

This commit is contained in:
2248356998 qq.com
2025-10-10 14:19:43 +08:00
parent a8a9774932
commit 19d9702606
3 changed files with 16 additions and 5 deletions

View File

@@ -28,7 +28,11 @@ namespace ThingsGateway.SqlSugar
this.Context.Close();
}
}
Task<string> CreateTempAsync<T>(Dictionary<string, (Type, List<DataInfos>)> list) where T : class, new()
{
IsUpdate = true;
return Task.FromResult(string.Empty);
}
public Task CreateTempAsync<T>(DataTable dt) where T : class, new()
{

View File

@@ -1,9 +1,9 @@
<Project>
<PropertyGroup>
<PluginVersion>10.11.92</PluginVersion>
<ProPluginVersion>10.11.92</ProPluginVersion>
<DefaultVersion>10.11.92</DefaultVersion>
<PluginVersion>10.11.93</PluginVersion>
<ProPluginVersion>10.11.93</ProPluginVersion>
<DefaultVersion>10.11.93</DefaultVersion>
<AuthenticationVersion>10.11.6</AuthenticationVersion>
<SourceGeneratorVersion>10.11.6</SourceGeneratorVersion>
<NET8Version>8.0.20</NET8Version>

View File

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