mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-02 03:13:58 +08:00
Add mysql unit test
This commit is contained in:
@@ -54,7 +54,15 @@ namespace OrmTest
|
|||||||
var result5 = db.Updateable(updateObj).WhereColumns(it => new { it.Id }).ExecuteCommand();//update single by id
|
var result5 = db.Updateable(updateObj).WhereColumns(it => new { it.Id }).ExecuteCommand();//update single by id
|
||||||
var result6 = db.Updateable(updateObjs).WhereColumns(it => new { it.Id }).ExecuteCommand();//update List<Class> by id
|
var result6 = db.Updateable(updateObjs).WhereColumns(it => new { it.Id }).ExecuteCommand();//update List<Class> by id
|
||||||
|
|
||||||
|
var result66 =
|
||||||
|
db.Updateable(updateObjs.First())
|
||||||
|
.PublicSetColumns(it => it.Price, it => it.Price + 1)
|
||||||
|
.ExecuteCommand();
|
||||||
|
|
||||||
|
var result67 =
|
||||||
|
db.Updateable(updateObjs)
|
||||||
|
.PublicSetColumns(it => it.Price, it => it.Price + 1)
|
||||||
|
.ExecuteCommand();
|
||||||
|
|
||||||
|
|
||||||
/*** 2.by expression ***/
|
/*** 2.by expression ***/
|
||||||
|
|||||||
Reference in New Issue
Block a user