Synchronization code

This commit is contained in:
sunkaixuan 2023-08-29 13:06:53 +08:00
parent d75c04a698
commit 12f25d2c7e

View File

@ -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);