mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Add demo
This commit is contained in:
parent
e773976eb3
commit
d316137e0c
@ -101,6 +101,11 @@ namespace OrmTest
|
|||||||
//Use Lock
|
//Use Lock
|
||||||
db.Updateable(updateObj).With(SqlWith.UpdLock).ExecuteCommand();
|
db.Updateable(updateObj).With(SqlWith.UpdLock).ExecuteCommand();
|
||||||
|
|
||||||
|
db.Updateable<object>()
|
||||||
|
.AS("Order")
|
||||||
|
.SetColumns("name", 1)
|
||||||
|
.Where("id=1").ExecuteCommand();
|
||||||
|
|
||||||
//Where Sql
|
//Where Sql
|
||||||
//db.Updateable(updateObj).Where("id=@x", new { x = 1 }).ExecuteCommand();
|
//db.Updateable(updateObj).Where("id=@x", new { x = 1 }).ExecuteCommand();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user