Beautify the generated SQL

This commit is contained in:
sunkaixuan
2017-07-28 10:18:34 +08:00
parent 12396997ed
commit 4b23eb03d7
4 changed files with 10 additions and 2 deletions

View File

@@ -109,6 +109,9 @@ namespace OrmTest.UnitTest
var t10 = db.Queryable<Student>().Select(it => new StudentEnum() { Id = SqlFunc.GetSelfAndAutoFill(it.Id) }).ToSql();
base.Check("SELECT * FROM [STudent] ", null, t10.Key, t10.Value, "single t10 error");
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");
}
}
}