Browse Source

Previous requirement

pull/33/head
sunkaixuan 2 years ago
parent
commit
3acf49b51c
  1. 9
      Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/UpdateBuilder.cs

9
Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/UpdateBuilder.cs

@ -426,7 +426,14 @@ namespace SqlSugar
}
else if (IsListSetExp(columnInfo)|| IsSingleSetExp(columnInfo))
{
return this.ReSetValueBySqlExpList[columnInfo.PropertyName].Sql;
if (this.ReSetValueBySqlExpList[columnInfo.PropertyName].Type == ReSetValueBySqlExpListModelType.List)
{
return columnInfo.DbColumnName+this.ReSetValueBySqlExpList[columnInfo.PropertyName].Sql+name;
}
else
{
return this.ReSetValueBySqlExpList[columnInfo.PropertyName].Sql;
}
}
else if (columnInfo.UpdateSql.HasValue())
{

Loading…
Cancel
Save