public static ValueNode AliasedCol <TTable>(AggregateType type, ValueNode parameter, string alias) { return(ValueNode.NewNamedColumn( new AliasedColumnNode( ValueNode.NewAggregate(new Tuple <AggregateType, ValueNode>(type, parameter)), alias))); }
public static ValueNode AliasedCol( string alias, AggregateType type, ValueNode aggregateParameter, IEnumerable <ValueNode> partitionBy = null, IEnumerable <OrderByClauseNode> orderBy = null) { return(ValueNode.NewNamedColumn( new AliasedColumnNode( WinCol(type, aggregateParameter, partitionBy, orderBy), alias))); }
public static ValueNode AliasedCol(ValueNode node, string alias) { return(ValueNode.NewNamedColumn(new AliasedColumnNode(node, alias))); }