关于更新问题 返回

SqlSugar 老数据
1 1716

这样可以:

 int i = bll.db.Updateable(model).UpdateColumns(it => it == "LiftCount").With(SqlSugar.SqlWith.UpdLock).ExecuteCommand();



这样不行,it. 后面没有实体成员

 int i = bll.db.Updateable(model).UpdateColumns(it => new{it .LiftCount}).With(SqlSugar.SqlWith.UpdLock).ExecuteCommand();

是哪里不对了呢?

热忱回答1