关于更新问题 返回
SqlSugar
老数据
1
1716
悬赏:5 飞吻
这样可以:
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)
-
fate stay night VIP0
2019/2/25有的时候只是没提示
0 回复