mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 20:43:46 +08:00
Update sqlite
This commit is contained in:
@@ -55,6 +55,15 @@ namespace OrmTest
|
||||
var result6 = db.Updateable(updateObjs).WhereColumns(it => new { it.Id }).ExecuteCommand();//update List<Class> by id
|
||||
|
||||
|
||||
var result67 =
|
||||
db.Updateable(updateObjs)
|
||||
.PublicSetColumns(it => it.Price, it => it.Price + 1)
|
||||
.ExecuteCommand();
|
||||
|
||||
var result68 =
|
||||
db.Updateable(updateObjs.First())
|
||||
.PublicSetColumns(it => it.Price, it => it.Price + 1)
|
||||
.ExecuteCommand();
|
||||
|
||||
|
||||
/*** 2.by expression ***/
|
||||
|
Reference in New Issue
Block a user