Synchronization code

This commit is contained in:
sunkaixuan
2024-01-10 15:57:46 +08:00
parent 5ac13ffca1
commit dc9cfd1898

View File

@@ -193,7 +193,10 @@ namespace SqlSugar
var result = 0;
var x = await this.ToStorageAsync();
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;
}
public int ExecuteSqlBulkCopy()