This commit is contained in:
sunkaixuan 2023-07-09 18:41:28 +08:00
parent 6f27d41a8a
commit d423d62c81

View File

@ -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 ***/