mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-02 03:13:58 +08:00
-
This commit is contained in:
@@ -61,7 +61,14 @@ namespace OrmTest.UnitTest
|
|||||||
|
|
||||||
var list2 = db.Queryable<Student>()
|
var list2 = db.Queryable<Student>()
|
||||||
.Where(st => st.Id > 0)
|
.Where(st => st.Id > 0)
|
||||||
.Select("id").ToList();
|
.Select("id").ToSql();
|
||||||
|
|
||||||
|
base.Check("SELECT id FROM [Student] WHERE ( [Id] > @Id0 )",
|
||||||
|
new List<SugarParameter>() { new SugarParameter("@Id0", 0) },
|
||||||
|
list2.Key,
|
||||||
|
list2.Value,
|
||||||
|
"list2报错"
|
||||||
|
);
|
||||||
|
|
||||||
var list3 = db.Queryable<Student, School, School>((st, sc, sc2) => new object[] {
|
var list3 = db.Queryable<Student, School, School>((st, sc, sc2) => new object[] {
|
||||||
JoinType.Left,st.SchoolId==sc.Id,
|
JoinType.Left,st.SchoolId==sc.Id,
|
||||||
|
|||||||
Reference in New Issue
Block a user