private void EnsureQueryHasOneColumnOnly(QueryNode query) { SelectColumn[] selectColumns = query.GetColumns(); if (selectColumns.Length != 1) { _errorReporter.TooManyExpressionsInSelectListOfSubquery(); } }
protected override IList <ColumnBinding> BuildColumns() { List <ColumnBinding> result = new List <ColumnBinding>(); foreach (SelectColumn selectColumn in _anchorMember.GetColumns()) { DerivedColumnBinding derivedColumnBinding = new DerivedColumnBinding(this, selectColumn.Alias.Text, selectColumn.Expression.ExpressionType); result.Add(derivedColumnBinding); } return(result); }
public override SelectColumn[] GetColumns() { return(_input.GetColumns()); }
private void EnsureQueryHasOneColumnOnly(QueryNode query) { SelectColumn[] selectColumns = query.GetColumns(); if (selectColumns.Length != 1) _errorReporter.TooManyExpressionsInSelectListOfSubquery(); }