Esempio n. 1
0
 /// <summary>
 /// Groups the by.
 /// </summary>
 /// <param name="columns">The columns.</param>
 public void GroupBy(params string[] columns)
 {
     foreach (var column in columns)
     {
         GroupByColumns.Add(column);
     }
 }
Esempio n. 2
0
 public SelectQuery GroupBy(IEnumerable <string> groupByColumns)
 {
     foreach (string groupByColumn in groupByColumns)
     {
         GroupByColumns.Add(Query.ColumnSyntax(groupByColumn));
     }
     return(this);
 }
Esempio n. 3
0
 public Query GroupBy(params string[] columns)
 {
     foreach (var item in columns)
     {
         GroupByColumns.Add(new Column(item));
     }
     return(this);
 }
Esempio n. 4
0
 /// <inheritdoc />
 public ISelectStringBuilder GroupBy(params string[] columnNames)
 {
     foreach (var columnName in columnNames)
     {
         GroupByColumns.Add(columnName);
     }
     return(this);
 }
Esempio n. 5
0
 public SelectQuery GroupBy(string groupByColumn, params string[] groupByColumns)
 {
     GroupByColumns.Add(Query.ColumnSyntax(groupByColumn));
     return(GroupBy(groupByColumns));
 }
Esempio n. 6
0
 /// <summary>
 /// Creates and adds a new Groupby clause to the current query object
 /// </summary>
 /// <param name="fieldName"></param>
 public SelectQueryBuilder GroupBy(string fieldName)
 {
     GroupByColumns.Add(fieldName);
     return(this);
 }
Esempio n. 7
0
        /// <summary>
        /// Adds a column to the GROUP BY clause.
        /// </summary>
        public SelectBuilder GroupBy(String column)
        {
            GroupByColumns.Add(column);

            return(this);
        }