mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-17 10:41:56 +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))
|
foreach (var item in groupModels.GroupBy(it => it.GroupName))
|
||||||
{
|
{
|
||||||
var addList = item.Select(it => it.Item).ToList();
|
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)
|
if (ActionCallBack != null)
|
||||||
{
|
{
|
||||||
ActionCallBack(resultValue);
|
ActionCallBack(resultValue);
|
||||||
@ -142,7 +142,7 @@ namespace SqlSugar
|
|||||||
foreach (var item in groupModels.GroupBy(it => it.GroupName))
|
foreach (var item in groupModels.GroupBy(it => it.GroupName))
|
||||||
{
|
{
|
||||||
var addList = item.Select(it => it.Item).ToList();
|
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)
|
if (ActionCallBack != null)
|
||||||
{
|
{
|
||||||
ActionCallBack(resultValue);
|
ActionCallBack(resultValue);
|
||||||
|
Loading…
Reference in New Issue
Block a user