GroupBy() public méthode

Adds a field of a given table alias to the GROUP BY clause.
public GroupBy ( IAlias alias, string fieldName ) : SqlQuery
alias IAlias A table alias that will be prepended to the field name with "." between
fieldName string A field name of the aliased table.
Résultat SqlQuery
Exemple #1
0
        public static SqlQuery GroupBy(this SqlQuery query, IField field)
        {
            if (field == null)
            {
                throw new ArgumentNullException("field");
            }

            return(query.GroupBy(field.Expression));
        }