This commit is contained in:
sunkaixuan
2023-09-28 18:38:01 +08:00
parent 93ae2c913f
commit a507562689

View File

@@ -43,6 +43,7 @@ namespace OrmTest
//update all columns by primary key
var result = db.Updateable(updateObj).ExecuteCommand();//update single
var result2 = db.Updateable(updateObjs).ExecuteCommand();//update List<Class>
var result22 = db.Updateable(updateObjs).PageSize(2).ExecuteCommand();
//Ignore Name and Price
var result3 = db.Updateable(updateObj).IgnoreColumns(it => new { it.CreateTime, it.Price }).ExecuteCommand();