mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 20:13:41 +08:00
Add unit test
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user