Update Storageable.Splitable().ExecuteCommadAsync

This commit is contained in:
sunkaixuan
2023-08-28 11:31:34 +08:00
parent 136f6f8a40
commit a852a7a7c6

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