Browse Source

Add demo

pull/40/head
sunkaixuan 1 year ago
parent
commit
d423d62c81
  1. 6
      Src/Asp.NetCore2/MySqlTest/Demo/Demo2_Updateable.cs

6
Src/Asp.NetCore2/MySqlTest/Demo/Demo2_Updateable.cs

@ -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…
Cancel
Save