Example #1
0
 public GroupByList Append(bool copyToColumns, params string[] columns)
 {
     foreach (string column in columns)
     {
         GroupBy expression = new GroupBy(column);
         this.Append(expression, copyToColumns);
     }
     return(this);
 }
Example #2
0
 public GroupByList Append(GroupBy expression, bool copyToColumns = false)
 {
     this._expressions.Add(expression);
     if (copyToColumns)
     {
         this.Columns.Append(expression.Column);
     }
     return(this);
 }
Example #3
0
 public IGroupByList Raw(params string[] rawSql)
 {
     foreach (string sql in rawSql)
     {
         GroupBy expression = new GroupBy(sql)
         {
             IsRaw      = true,
             TableAlias = string.Empty,
         };
         this.Append(expression);
     }
     return(this);
 }
Example #4
0
 public IGroupByList Append(bool copyToColumns = false, params string[] columns)
 {
     foreach (string column in columns)
     {
         GroupBy expression = new GroupBy(column)
         {
             IsRaw      = false,
             TableAlias = this.TableAlias,
         };
         this.Append(expression, copyToColumns);
     }
     return(this);
 }
Example #5
0
 public GroupByList AppendWithColumn(GroupBy expression, string column, string columnAlias, string prefix = "", string postfix = "")
 {
     this._expressions.Add(expression);
     this.Columns.AppendAlias(column, columnAlias, prefix, postfix);
     return(this);
 }