mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Add db.Tracking demo
This commit is contained in:
parent
a5dad48866
commit
f7cb691cb0
@ -58,6 +58,12 @@ namespace OrmTest
|
|||||||
var result66 = db.Updateable(new List<Order> { updateObj }).ReSetValue(it => it.Id = 112).IgnoreColumns(it => new { it.CreateTime, it.Price }).ExecuteCommand();
|
var result66 = db.Updateable(new List<Order> { updateObj }).ReSetValue(it => it.Id = 112).IgnoreColumns(it => new { it.CreateTime, it.Price }).ExecuteCommand();
|
||||||
|
|
||||||
|
|
||||||
|
//Update by track
|
||||||
|
db.Tracking(updateObj);
|
||||||
|
updateObj.Name = "a1" + Guid.NewGuid();
|
||||||
|
db.Updateable(updateObj).ExecuteCommand();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*** 2.by expression ***/
|
/*** 2.by expression ***/
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user