This commit is contained in:
sunkaixuan 2024-06-15 12:03:09 +08:00
parent 8f995d4e0e
commit c89f6a98e4

View File

@ -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")]