mirror of
https://gitee.com/ThingsGateway/ThingsGateway.git
synced 2025-10-20 18:51:28 +08:00
fix: sqlite 批量更新
This commit is contained in:
@@ -28,7 +28,11 @@ namespace ThingsGateway.SqlSugar
|
|||||||
this.Context.Close();
|
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()
|
public Task CreateTempAsync<T>(DataTable dt) where T : class, new()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@@ -1,9 +1,9 @@
|
|||||||
<Project>
|
<Project>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<PluginVersion>10.11.92</PluginVersion>
|
<PluginVersion>10.11.93</PluginVersion>
|
||||||
<ProPluginVersion>10.11.92</ProPluginVersion>
|
<ProPluginVersion>10.11.93</ProPluginVersion>
|
||||||
<DefaultVersion>10.11.92</DefaultVersion>
|
<DefaultVersion>10.11.93</DefaultVersion>
|
||||||
<AuthenticationVersion>10.11.6</AuthenticationVersion>
|
<AuthenticationVersion>10.11.6</AuthenticationVersion>
|
||||||
<SourceGeneratorVersion>10.11.6</SourceGeneratorVersion>
|
<SourceGeneratorVersion>10.11.6</SourceGeneratorVersion>
|
||||||
<NET8Version>8.0.20</NET8Version>
|
<NET8Version>8.0.20</NET8Version>
|
||||||
|
@@ -104,7 +104,14 @@ public static class RuleHelpers
|
|||||||
{
|
{
|
||||||
if (propertyInfos.TryGetValue(item.Key, out var propertyInfo))
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user