示例#1
0
 private void EnsureQueryHasOneColumnOnly(QueryNode query)
 {
     SelectColumn[] selectColumns = query.GetColumns();
     if (selectColumns.Length != 1)
     {
         _errorReporter.TooManyExpressionsInSelectListOfSubquery();
     }
 }
示例#2
0
        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());
 }
示例#4
0
 private void EnsureQueryHasOneColumnOnly(QueryNode query)
 {
     SelectColumn[] selectColumns = query.GetColumns();
     if (selectColumns.Length != 1)
         _errorReporter.TooManyExpressionsInSelectListOfSubquery();
 }