mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 13:06:50 +08:00
Add demo
This commit is contained in:
parent
ce37641174
commit
2531eb8115
@ -66,8 +66,11 @@ namespace OrmTest
|
||||
var result8 = db.Updateable<Order>(it => it.Name == "Name" + "1").Where(it => it.Id == 1).ExecuteCommand();
|
||||
var result81 = db.Updateable<Order>().SetColumns(it => it.Name == "Name" + "1").Where(it => it.Id == 1).ExecuteCommand();
|
||||
//
|
||||
|
||||
|
||||
var result61 = db.Updateable<Order>()
|
||||
.InnerJoin<Custom>((x, y) => x.CustomId == y.Id)
|
||||
.SetColumns((x, y) => new Order() { Name = y.Name, Price = y.Id })
|
||||
.Where((x, y) => x.Id == 1)
|
||||
.ExecuteCommand();
|
||||
|
||||
|
||||
/*** 3.by Dictionary ***/
|
||||
|
Loading…
Reference in New Issue
Block a user