mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Add unit test
This commit is contained in:
parent
005caf242f
commit
18ed9df3ee
@ -97,6 +97,11 @@ namespace OrmTest
|
|||||||
//Use Lock
|
//Use Lock
|
||||||
db.Updateable(updateObj).With(SqlWith.UpdLock).ExecuteCommand();
|
db.Updateable(updateObj).With(SqlWith.UpdLock).ExecuteCommand();
|
||||||
|
|
||||||
|
db.Updateable<Order>()
|
||||||
|
.InnerJoin<Order>((x, y) => x.Id == y.Id)
|
||||||
|
.SetColumns((x, y) => new Order() { Name = "a", CreateTime = DateTime.Now })
|
||||||
|
.Where((x, y) => x.Id == 11).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