mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-28 11:11:32 +08:00
Add test
This commit is contained in:
@@ -55,6 +55,7 @@ namespace OrmTest
|
|||||||
Test04(db);
|
Test04(db);
|
||||||
Test05(db);
|
Test05(db);
|
||||||
Test06(db);
|
Test06(db);
|
||||||
|
Test07(db);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void Test01(SqlSugarClient db)
|
private static void Test01(SqlSugarClient db)
|
||||||
@@ -144,6 +145,20 @@ namespace OrmTest
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static void Test07(SqlSugarClient db)
|
||||||
|
{
|
||||||
|
var value = db.Queryable<Test001faf1aaa>()
|
||||||
|
.Select(it => new Test001faf1aaa
|
||||||
|
{
|
||||||
|
Id = it.Id==1?it.Id :it.Id==2?3:4
|
||||||
|
})
|
||||||
|
.First().Id;
|
||||||
|
if (value != 4)
|
||||||
|
{
|
||||||
|
throw new Exception("unit error");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[SqlSugar.SugarTable("unitdafaf1311")]
|
[SqlSugar.SugarTable("unitdafaf1311")]
|
||||||
public class Test001faf1aaa
|
public class Test001faf1aaa
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user