mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update unit test
This commit is contained in:
parent
e08444d161
commit
7d49087644
@ -71,6 +71,9 @@ namespace OrmTest
|
|||||||
db.Updateable<UpdateTest>()
|
db.Updateable<UpdateTest>()
|
||||||
.SetColumns(x => new UpdateTest { T1 = 1 }).Where(x => x.Id == id).ExecuteCommand();
|
.SetColumns(x => new UpdateTest { T1 = 1 }).Where(x => x.Id == id).ExecuteCommand();
|
||||||
|
|
||||||
|
data.T1 = 1;
|
||||||
|
db.Updateable<UpdateTest>()
|
||||||
|
.SetColumns(x => new UpdateTest { T1 = (int)data.T1 }).Where(x => x.Id == id).ExecuteCommand();
|
||||||
|
|
||||||
//Console.ReadKey();
|
//Console.ReadKey();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user