mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update oracle page insert result
This commit is contained in:
parent
cf6d6e9c17
commit
ab4bf97cbd
@ -51,6 +51,7 @@ namespace SqlSugar
|
||||
string sql = _ExecuteCommand();
|
||||
var result = Ado.ExecuteCommand(sql, InsertBuilder.Parameters == null ? null : InsertBuilder.Parameters.ToArray());
|
||||
After(sql, null);
|
||||
if (result == -1) return this.InsertObjs.Count();
|
||||
return result;
|
||||
}
|
||||
public virtual string ToSqlString()
|
||||
@ -311,6 +312,7 @@ namespace SqlSugar
|
||||
string sql = _ExecuteCommand();
|
||||
var result =await Ado.ExecuteCommandAsync(sql, InsertBuilder.Parameters == null ? null : InsertBuilder.Parameters.ToArray());
|
||||
After(sql, null);
|
||||
if (result == -1) return this.InsertObjs.Count();
|
||||
return result;
|
||||
}
|
||||
public virtual async Task<int> ExecuteReturnIdentityAsync()
|
||||
|
Loading…
Reference in New Issue
Block a user