Browse Source

Previous requirement

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

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

@ -425,9 +425,16 @@ namespace SqlSugar
return LambdaExpressions.DbMehtods.GetDate();
}
else if (IsListSetExp(columnInfo)|| IsSingleSetExp(columnInfo))
{
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())
{
return columnInfo.UpdateSql;

Loading…
Cancel
Save