/// <summary> /// Verifies if the expression contains any aggregate function /// in the tree. /// </summary> /// <param name="expression">The expression to verify.</param> /// <param name="query"></param> /// <returns> /// Returns <c>true</c> if the expression has any aggregate function in its tree, /// or <c>false</c> otherwise. /// </returns> public static bool HasAggregate(this SqlExpression expression, IRequest query) { var visitor = new AggregateChecker(query); return visitor.HasAggregate(expression); }
/// <summary> /// Verifies if the expression contains any aggregate function /// in the tree. /// </summary> /// <param name="expression">The expression to verify.</param> /// <param name="query"></param> /// <returns> /// Returns <c>true</c> if the expression has any aggregate function in its tree, /// or <c>false</c> otherwise. /// </returns> public static bool HasAggregate(this SqlExpression expression, IRequest query) { var visitor = new AggregateChecker(query); return(visitor.HasAggregate(expression)); }
/// <summary> /// Verifies if the expression contains any aggregate function /// in the tree. /// </summary> /// <param name="expression">The expression to verify.</param> /// <param name="queryContext"></param> /// <returns> /// Returns <c>true</c> if the expression has any aggregate function in its tree, /// or <c>false</c> otherwise. /// </returns> public static bool HasAggregate(this SqlExpression expression, IQueryContext queryContext) { var visitor = new AggregateChecker(queryContext); return visitor.HasAggregate(expression); }