mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-29 10:49:36 +08:00
Synchronization code
This commit is contained in:
parent
d75c04a698
commit
12f25d2c7e
@ -111,7 +111,7 @@ namespace SqlSugar
|
||||
foreach (var item in groupModels.GroupBy(it => it.GroupName))
|
||||
{
|
||||
var addList = item.Select(it => it.Item).ToList();
|
||||
resultValue +=await this.Context.Storageable(addList).ExecuteCommandAsync();
|
||||
resultValue +=await this.Context.Storageable(addList).As(item.Key).ExecuteCommandAsync();
|
||||
if (ActionCallBack != null)
|
||||
{
|
||||
ActionCallBack(resultValue);
|
||||
@ -142,7 +142,7 @@ namespace SqlSugar
|
||||
foreach (var item in groupModels.GroupBy(it => it.GroupName))
|
||||
{
|
||||
var addList = item.Select(it => it.Item).ToList();
|
||||
resultValue += await this.Context.Storageable(addList).ExecuteSqlBulkCopyAsync();
|
||||
resultValue += await this.Context.Storageable(addList).As(item.Key).ExecuteSqlBulkCopyAsync();
|
||||
if (ActionCallBack != null)
|
||||
{
|
||||
ActionCallBack(resultValue);
|
||||
|
Loading…
Reference in New Issue
Block a user