This commit is contained in:
sunkaixuan
2025-04-28 21:10:23 +08:00
parent 1b4b03df51
commit 2e8a26e131

View File

@@ -55,6 +55,7 @@ namespace OrmTest
Test04(db);
Test05(db);
Test06(db);
Test07(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")]
public class Test001faf1aaa
{