sqlsugar更新
//UpdateColumns:只更新某些列
db.Updateable(entity).UpdateColumns(it => new { it.Name }).ExecuteCommand();
//IgnoreColumns:不更新某些列
db.Updateable(entity).IgnoreColumns(it => new { it.CreateTime,it.TestId }).ExecuteCommand()
//WhereColumns:根据id更新集合(表无主键时可以使用)
db.Updateable(entity).WhereColumns(it => new { it.FPBID }).ExecuteCommand();
官网链接:
https://www.donet5.com/home/doc?masterId=1&typeId=1191