From 4e5ed5df7e97eb7c07d49e9c58364fa150c76d2a Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Mon, 27 Mar 2023 21:20:10 +0800 Subject: [PATCH] - --- .../Abstract/UpdateProvider/SplitTableUpdateByObjectProvider.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Src/Asp.Net/SqlSugar/Abstract/UpdateProvider/SplitTableUpdateByObjectProvider.cs b/Src/Asp.Net/SqlSugar/Abstract/UpdateProvider/SplitTableUpdateByObjectProvider.cs index 8b1b25c17..fa5c3739a 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/UpdateProvider/SplitTableUpdateByObjectProvider.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/UpdateProvider/SplitTableUpdateByObjectProvider.cs @@ -25,6 +25,7 @@ namespace SqlSugar { var addList = item.Select(it => it.Item).ToList(); result += this.Context.Updateable(addList) + .UpdateColumns(updateobj.UpdateBuilder.UpdateColumns?.ToArray()) .IgnoreColumns(this.updateobj.UpdateBuilder.IsNoUpdateNull, this.updateobj.UpdateBuilder.IsOffIdentity,this.updateobj.UpdateBuilder.IsNoUpdateDefaultValue) .IgnoreColumns(GetIgnoreColumns()).AS(item.Key).ExecuteCommand(); }