mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 13:34:32 +08:00
Add demo
This commit is contained in:
parent
8f995d4e0e
commit
c89f6a98e4
@ -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")]
|
||||||
|
Loading…
Reference in New Issue
Block a user