public void Test_GroupBy_8()
 {
     _clause.GroupBy("a");
     _clause.GroupBy("b");
     _clause.AppendSql("c");
     _clause.AppendSql("d");
     Assert.Equal("Group By [a],[b],c,d", GetSql());
 }
Exemple #2
0
 /// <summary>
 /// 添加到GroupBy子句
 /// </summary>
 /// <param name="sql">Sql语句</param>
 /// <returns></returns>
 public ISqlBuilder AppendGroupBy(string sql)
 {
     GroupByClause.AppendSql(sql);
     return(this);
 }