This commit is contained in:
sunkaixuan 2023-01-04 12:56:44 +08:00
parent e773976eb3
commit d316137e0c

View File

@ -101,6 +101,11 @@ namespace OrmTest
//Use Lock
db.Updateable(updateObj).With(SqlWith.UpdLock).ExecuteCommand();
db.Updateable<object>()
.AS("Order")
.SetColumns("name", 1)
.Where("id=1").ExecuteCommand();
//Where Sql
//db.Updateable(updateObj).Where("id=@x", new { x = 1 }).ExecuteCommand();