/// <inheritdoc /> public virtual TQuery GroupBy(Expression <Func <TSource, object> > property) { if (property != null) { IProjection projection = ProjectionHelper .GetProjection ( property.Body, new HelperContext(Data, property, HelperType.GroupBy) ); if (projection != null) { if (projection.IsGrouped || projection.IsAggregate) { throw new InvalidOperationException( "Cannot use an aggregate or grouped projection with GroupBy"); } GroupBys.Add(new FqGroupByProjection(projection, false)); } } return(Query); }
public QueryExpression GroupBy(params string[] propertyNames) { foreach (string propertyName in propertyNames) { GroupBys.Add(propertyName); } return(this); }
public QueryExpression GroupBy(params IPropertyExpression[] propertys) { foreach (IPropertyExpression property in propertys) { GroupBys.Add(new GroupExpression(property.PropertyName)); } return(this); }
public void AdicionarAgrupamento(string agrupamento) { GroupBys.Add(agrupamento); }
public void AppendGroupBy(IQueryableColumn groupByColumn) { GroupBys.Add(groupByColumn); }