Analytic optimization

This commit is contained in:
sunkaixuan
2017-08-13 18:19:31 +08:00
parent f329f299b1
commit 9675f05e81
4 changed files with 39 additions and 1 deletions

View File

@@ -112,6 +112,10 @@ namespace OrmTest.UnitTest
var t11= db.Queryable<Student>().GroupBy("id").OrderBy("id").Select("id").ToSql();
base.Check("SELECT id FROM [STudent] GROUP BY id ORDER BY id ", null, t11.Key, t11.Value, "single t11 error");
var t12 = db.Queryable<Student>().Where(it=>it.Id!=null).ToSql();
base.Check("SELECT [ID],[SchoolId],[Name],[CreateTime] FROM [STudent] WHERE ( [ID] IS NOT NULL )", null, t12.Key, t12.Value, "single t12 error");
}
}
}