From 3acf49b51c20e8ab52ab09fb6aa43c4e2adfe82a Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Sun, 21 May 2023 17:49:53 +0800 Subject: [PATCH] Previous requirement --- .../Abstract/SqlBuilderProvider/UpdateBuilder.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/UpdateBuilder.cs b/Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/UpdateBuilder.cs index 06f03869a..a81ab6f35 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/UpdateBuilder.cs +++ b/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()) {