mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-31 15:56:25 +08:00
Update InsertOrUpdate
This commit is contained in:
parent
bca3b4f783
commit
5ac13ffca1
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user