Sqlite affected row count statistics error

This commit is contained in:
sunkaixuan 2022-06-20 23:50:38 +08:00
parent a25463cb5c
commit 31f0532dee

View File

@ -73,7 +73,9 @@ namespace SqlSugar
var result = 0;
var x = this.ToStorage();
result+=x.AsInsertable.ExecuteCommand();
result += x.AsUpdateable.ExecuteCommand();
var updateRow = x.AsUpdateable.ExecuteCommand();
if (updateRow < 0) updateRow = 0;
result += updateRow;
return result;
}
public async Task<int> ExecuteCommandAsync()