mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-26 10:19:40 +08:00
Update split table
This commit is contained in:
@@ -60,6 +60,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
var addList = item.Select(it => it.Item).ToList();
|
var addList = item.Select(it => it.Item).ToList();
|
||||||
result += await this.Context.Updateable(addList)
|
result += await this.Context.Updateable(addList)
|
||||||
|
.WhereColumns(this.WhereColumns?.ToArray())
|
||||||
.UpdateColumns(updateobj.UpdateBuilder.UpdateColumns?.ToArray())
|
.UpdateColumns(updateobj.UpdateBuilder.UpdateColumns?.ToArray())
|
||||||
.IgnoreColumns(this.updateobj.UpdateBuilder.IsNoUpdateNull, this.updateobj.UpdateBuilder.IsOffIdentity, this.updateobj.UpdateBuilder.IsNoUpdateDefaultValue)
|
.IgnoreColumns(this.updateobj.UpdateBuilder.IsNoUpdateNull, this.updateobj.UpdateBuilder.IsOffIdentity, this.updateobj.UpdateBuilder.IsNoUpdateDefaultValue)
|
||||||
.IgnoreColumns(GetIgnoreColumns()).AS(item.Key).ExecuteCommandAsync();
|
.IgnoreColumns(GetIgnoreColumns()).AS(item.Key).ExecuteCommandAsync();
|
||||||
@@ -75,6 +76,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
var addList = item.Select(it => it.Item).ToList();
|
var addList = item.Select(it => it.Item).ToList();
|
||||||
result += await this.Context.Updateable(addList)
|
result += await this.Context.Updateable(addList)
|
||||||
|
.WhereColumns(this.WhereColumns?.ToArray())
|
||||||
.UpdateColumns(updateobj.UpdateBuilder.UpdateColumns?.ToArray())
|
.UpdateColumns(updateobj.UpdateBuilder.UpdateColumns?.ToArray())
|
||||||
.IgnoreColumns(this.updateobj.UpdateBuilder.IsNoUpdateNull, this.updateobj.UpdateBuilder.IsOffIdentity, this.updateobj.UpdateBuilder.IsNoUpdateDefaultValue)
|
.IgnoreColumns(this.updateobj.UpdateBuilder.IsNoUpdateNull, this.updateobj.UpdateBuilder.IsOffIdentity, this.updateobj.UpdateBuilder.IsNoUpdateDefaultValue)
|
||||||
.IgnoreColumns(GetIgnoreColumns()).AS(item.Key).ExecuteCommandWithOptLockAsync(isThrowError);
|
.IgnoreColumns(GetIgnoreColumns()).AS(item.Key).ExecuteCommandWithOptLockAsync(isThrowError);
|
||||||
|
|||||||
Reference in New Issue
Block a user