mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Add demo
This commit is contained in:
parent
6f27d41a8a
commit
d423d62c81
@ -70,7 +70,11 @@ namespace OrmTest
|
||||
.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();
|
||||
.ExecuteCommand();
|
||||
|
||||
db.Updateable<Order>().SetColumns(it => it.Name == "a")
|
||||
.Where(it => SqlFunc.Subqueryable<Order>().Where(s=>s.Id==it.Id).Any())
|
||||
.ExecuteCommand();
|
||||
|
||||
|
||||
/*** 3.by Dictionary ***/
|
||||
|
Loading…
Reference in New Issue
Block a user