GroupBy() 공개 메소드

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.
리턴 SqlQuery
예제 #1
0
        public static SqlQuery GroupBy(this SqlQuery query, IField field)
        {
            if (field == null)
            {
                throw new ArgumentNullException("field");
            }

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