mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-31 15:56:25 +08:00
Optimized code
This commit is contained in:
parent
c9c024482b
commit
bcf35e1ef7
@ -112,7 +112,11 @@ namespace SqlSugar
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
var result = this.Ado.ExecuteCommand(sql, UpdateBuilder.Parameters == null ? null : UpdateBuilder.Parameters.ToArray());
|
||||
var result = 0;
|
||||
if (sql != Environment.NewLine)
|
||||
{
|
||||
result = this.Ado.ExecuteCommand(sql, UpdateBuilder.Parameters == null ? null : UpdateBuilder.Parameters.ToArray());
|
||||
}
|
||||
After(sql);
|
||||
return result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user