mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Add SqlServer Demo
This commit is contained in:
parent
682d449dd3
commit
a1cde58b88
@ -58,6 +58,10 @@ namespace OrmTest
|
|||||||
//Re set value
|
//Re set value
|
||||||
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();
|
||||||
|
|
||||||
|
var result67 =
|
||||||
|
db.Updateable(updateObjs)
|
||||||
|
.PublicSetColumns(it => it.Price, it => it.Price + 1)
|
||||||
|
.ExecuteCommand();
|
||||||
|
|
||||||
//Update by track
|
//Update by track
|
||||||
Console.WriteLine(" Tracking 1:");
|
Console.WriteLine(" Tracking 1:");
|
||||||
|
Loading…
Reference in New Issue
Block a user