Synchronization code

This commit is contained in:
sunkaixuan
2023-12-03 20:02:01 +08:00
parent ab4a472efc
commit 30df78e737

View File

@@ -66,7 +66,7 @@ namespace SqlSugar
if (List.Count > pageSize) if (List.Count > pageSize)
{ {
var result = 0; var result = 0;
this.Context.Utilities.PageEach(List, pageSize, async pageItem => await this.Context.Utilities.PageEachAsync(List, pageSize, async pageItem =>
{ {
result +=await _ExecuteCommandAsync(pageItem); result +=await _ExecuteCommandAsync(pageItem);
if (ActionCallBack != null) if (ActionCallBack != null)
@@ -87,7 +87,7 @@ namespace SqlSugar
if (List.Count > pageSize) if (List.Count > pageSize)
{ {
var result = 0; var result = 0;
this.Context.Utilities.PageEach(List, pageSize, async pageItem => await this.Context.Utilities.PageEachAsync(List, pageSize, async pageItem =>
{ {
result += await _ExecuteSqlBulkCopyAsync(pageItem); result += await _ExecuteSqlBulkCopyAsync(pageItem);
if (ActionCallBack != null) if (ActionCallBack != null)