mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-26 10:49:20 +08:00
Optimized code
This commit is contained in:
@@ -703,6 +703,8 @@ namespace SqlSugar
|
||||
{
|
||||
this.RemoveCacheFunc();
|
||||
}
|
||||
|
||||
DataChangesAop(this.UpdateObjs);
|
||||
}
|
||||
private string _ExecuteCommandWithOptLock(T updateData,ref object oldVerValue)
|
||||
{
|
||||
|
||||
@@ -134,7 +134,6 @@ namespace SqlSugar
|
||||
}
|
||||
}
|
||||
After(sql);
|
||||
DataChangesAop(this.UpdateObjs);
|
||||
return result;
|
||||
}
|
||||
public bool ExecuteCommandHasChange()
|
||||
@@ -184,8 +183,7 @@ namespace SqlSugar
|
||||
return 0;
|
||||
}
|
||||
var result = await this.Ado.ExecuteCommandAsync(sql, UpdateBuilder.Parameters == null ? null : UpdateBuilder.Parameters.ToArray());
|
||||
After(sql);
|
||||
DataChangesAop(this.UpdateObjs);
|
||||
After(sql);
|
||||
return result;
|
||||
}
|
||||
public Task<bool> ExecuteCommandHasChangeAsync(CancellationToken token)
|
||||
|
||||
Reference in New Issue
Block a user