mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-25 10:08:11 +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();
|
string sql = _ExecuteCommand();
|
||||||
var result = Ado.ExecuteCommand(sql, InsertBuilder.Parameters == null ? null : InsertBuilder.Parameters.ToArray());
|
var result = Ado.ExecuteCommand(sql, InsertBuilder.Parameters == null ? null : InsertBuilder.Parameters.ToArray());
|
||||||
After(sql, null);
|
After(sql, null);
|
||||||
|
if (result == -1) return this.InsertObjs.Count();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
public virtual string ToSqlString()
|
public virtual string ToSqlString()
|
||||||
@ -311,6 +312,7 @@ namespace SqlSugar
|
|||||||
string sql = _ExecuteCommand();
|
string sql = _ExecuteCommand();
|
||||||
var result =await Ado.ExecuteCommandAsync(sql, InsertBuilder.Parameters == null ? null : InsertBuilder.Parameters.ToArray());
|
var result =await Ado.ExecuteCommandAsync(sql, InsertBuilder.Parameters == null ? null : InsertBuilder.Parameters.ToArray());
|
||||||
After(sql, null);
|
After(sql, null);
|
||||||
|
if (result == -1) return this.InsertObjs.Count();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
public virtual async Task<int> ExecuteReturnIdentityAsync()
|
public virtual async Task<int> ExecuteReturnIdentityAsync()
|
||||||
|
Loading…
Reference in New Issue
Block a user