mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 20:13:41 +08:00
Add demo
This commit is contained in:
@@ -43,6 +43,17 @@ namespace OrmTest
|
|||||||
{
|
{
|
||||||
throw new Exception("unit error");
|
throw new Exception("unit error");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var userInfo = db.Queryable<Test1>()
|
||||||
|
.Select(it =>
|
||||||
|
new System.Tuple<long, long>(
|
||||||
|
it.GuId,
|
||||||
|
it.TopId
|
||||||
|
)).ToList();
|
||||||
|
if (userInfo.FirstOrDefault()?.Item1 != 1)
|
||||||
|
{
|
||||||
|
throw new Exception("unit error");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[SugarTable("UnitTest1111")]
|
[SugarTable("UnitTest1111")]
|
||||||
|
Reference in New Issue
Block a user