mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-23 13:21:59 +08:00
Synchronization code
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user