批量分页更新指定字段,没有升级到新版本如何兼容 返回
SqlSugar
待处理
198
悬赏:5 飞吻
//分页更新 5.1.4.129+ 低版本 存在 UpateColumns设置无效
db.Updateable(List<实体>).PageSize(1000).ExecuteCommand()
sqlsugar 版本是 5.1.4.129以下的,使用了await _sqlSugarClient.Updateable(item) .UpdateColumns(it => new { it.Udf02, it.Modifier, it.ModiDate }) .PageSize(10) .ExecuteCommandAsync(); 还是异常,传入的请求具有过多的参数。该服务器支持最多 2100 个参数。请减少参数的数目,然后重新发送该请求,除了升级,还有什么方法可以解决这种列表更新且指定字段的吗