This commit is contained in:
sunkaixuan
2017-04-09 07:37:25 +08:00
parent 6f7a60f639
commit 9ade137290

View File

@@ -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,