Update db.Updateable(objs).ReSetValue

This commit is contained in:
sunkaixuna
2021-12-18 20:51:39 +08:00
parent 35b7926944
commit b44a496c8b
4 changed files with 19 additions and 16 deletions

View File

@@ -54,6 +54,8 @@ namespace OrmTest
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
//Re set value
var result66 = db.Updateable(new List<Order> { updateObj }).ReSetValue(it => it.Id = 112).IgnoreColumns(it => new { it.CreateTime, it.Price }).ExecuteCommand();