Update InsertOrUpdate

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

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