This commit is contained in:
sunkaixuan 2023-04-24 17:45:58 +08:00
parent 2531eb8115
commit 4310c0328f

View File

@ -69,9 +69,12 @@ namespace OrmTest
.SetColumns(it => it.CreateTime == DateTime.Now)
.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 ***/
var dt = new Dictionary<string, object>();