Optimized code

This commit is contained in:
sunkaixuan
2024-06-21 13:02:37 +08:00
parent e1e61db355
commit c7f0e55f68
2 changed files with 3 additions and 3 deletions

View File

@@ -703,6 +703,8 @@ namespace SqlSugar
{
this.RemoveCacheFunc();
}
DataChangesAop(this.UpdateObjs);
}
private string _ExecuteCommandWithOptLock(T updateData,ref object oldVerValue)
{

View File

@@ -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)