mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Synchronization code
This commit is contained in:
@@ -193,7 +193,10 @@ namespace SqlSugar
|
|||||||
var result = 0;
|
var result = 0;
|
||||||
var x = await this.ToStorageAsync();
|
var x = await this.ToStorageAsync();
|
||||||
result +=await x.AsInsertable.ExecuteCommandAsync();
|
result +=await x.AsInsertable.ExecuteCommandAsync();
|
||||||
result +=await x.AsUpdateable.ExecuteCommandAsync();
|
var updateCount=await x.AsUpdateable.ExecuteCommandAsync();
|
||||||
|
if (updateCount < 0)
|
||||||
|
updateCount = 0;
|
||||||
|
result += updateCount;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
public int ExecuteSqlBulkCopy()
|
public int ExecuteSqlBulkCopy()
|
||||||
|
Reference in New Issue
Block a user