Update Update join

This commit is contained in:
sunkaixuan 2024-07-04 18:59:44 +08:00
parent e04cedfba5
commit 85817abcba
2 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@ namespace SqlSugar
var SqlBuilder = UpdateBuilder.Builder;
foreach (var item in items)
{
updateableObj.UpdateBuilder.LambdaExpressions.IsSingle = false;
var dbColumnName = updateableObj.UpdateBuilder.Context.EntityMaintenance.GetDbColumnName<T>(item.Key);
var value = updateableObj.UpdateBuilder.GetExpressionValue(ExpressionTool.RemoveConvert(item.Value), ResolveExpressType.WhereMultiple).GetString();
this.updateableObj.UpdateBuilder.SetValues.Add(new KeyValuePair<string, string>(dbColumnName, value));

View File

@ -2,7 +2,7 @@
<package >
<metadata>
<id>SqlSugarCore</id>
<version>5.1.4.160</version>
<version>5.1.4.161-preview12</version>
<authors>sunkaixuan</authors>
<owners>果糖大数据科技</owners>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>