mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 13:06:50 +08:00
Add unit test
This commit is contained in:
parent
9dded83415
commit
b91f91e6b3
@ -17,6 +17,15 @@ namespace OrmTest
|
||||
x2=it.type2
|
||||
}).ToList();
|
||||
|
||||
var xx = Db.Queryable<Unit00Z11C12>().Select(it => new {
|
||||
x = it.type.ToString()
|
||||
}).ToList();
|
||||
|
||||
if (xx.First().x != "a")
|
||||
{
|
||||
throw new Exception("unit error");
|
||||
}
|
||||
|
||||
var x2 = Db.Queryable<Unit00Z11C12>().ToList();
|
||||
Db.Updateable<Unit00Z11C12>().SetColumns(it => it.type2 == UnitType.b)
|
||||
.Where(it=>true).ExecuteCommand();
|
||||
|
Loading…
Reference in New Issue
Block a user