mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Update unit test
This commit is contained in:
parent
e95dd5ed26
commit
231f3a1a31
@ -104,6 +104,7 @@ namespace OrmTest
|
||||
|
||||
Db.CodeFirst.InitTables<Unitbluecopy>();
|
||||
Db.Insertable(new Unitbluecopy()).UseSqlServer().ExecuteBulkCopy();
|
||||
Db.Insertable(new Unitbluecopy()).UseSqlServer().ExecuteBulkCopy();
|
||||
Db.CodeFirst.InitTables<BoolTest1>();
|
||||
Db.Updateable<BoolTest1>()
|
||||
.SetColumns(it =>it.a== !it.a)
|
||||
@ -114,6 +115,9 @@ namespace OrmTest
|
||||
.SetColumns(it=>new BoolTest1() { a = !it.a })
|
||||
.Where(it => it.a)
|
||||
.ExecuteCommand();
|
||||
|
||||
Db.Updateable<Unitbluecopy>(new Unitbluecopy() { }).WhereColumns(it => it.Id).ExecuteCommand();
|
||||
Db.Updateable<Unitbluecopy>(Db.Queryable<Unitbluecopy>().ToList()).WhereColumns(it => it.Id).ExecuteCommand();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user