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();
标签:Sugar,ExecuteCommand,db,entity,Updateable,Sql,new,拾遗
From: https://www.cnblogs.com/walterwhite/p/17010518.html