From 743244bdd3d9d5ec5064301b86d1918f28997c63 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Mon, 17 Jul 2023 18:54:08 +0800 Subject: [PATCH] BUG:Updateable(updateList).UpdateColumns(it=>it.Name).SplitTable().ExecuteCommandAsync() --- .../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 fa5c3739a..1976ca5b5 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/UpdateProvider/SplitTableUpdateByObjectProvider.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/UpdateProvider/SplitTableUpdateByObjectProvider.cs @@ -42,6 +42,7 @@ namespace SqlSugar { var addList = item.Select(it => it.Item).ToList(); result += await 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).ExecuteCommandAsync(); }