/// <summary> /// Adds the elements of another ExpressionCollection to the end of this ExpressionCollection. /// </summary> /// <param name="items"> /// The ExpressionCollection whose elements are to be added to the end of this ExpressionCollection. /// </param> public virtual void AddRange(ExpressionCollection items) { foreach (ISQLExpression item in items) { this.List.Add(item); } }
public SelectStatement(ITagMapping tag): base(tag) { SelectList = new ExpressionCollection(); _IsDistinct = false; _SelectedAllColumns = false; _Limit = 0; _Offset = 0; _FromClause = new FromClause(); _WhereClause = new WhereClause(BinaryLogicOperator.And); _OrderByClause = new OrderByClause(this); }
private bool FieldExists(ExpressionCollection selectList, string fieldName) { foreach (ISQLExpression item in selectList) { Column col = item as Column; if (col == null) continue; if (col.Alias == fieldName) return true; } return false; }
/// <summary> /// Initializes a new instance of the ExpressionCollection class, containing elements /// copied from another instance of ExpressionCollection /// </summary> /// <param name="items"> /// The ExpressionCollection whose elements are to be added to the new ExpressionCollection. /// </param> public ExpressionCollection(ExpressionCollection items) { this.AddRange(items); }
/// <summary> /// /// </summary> /// <param name="collection"></param> public Enumerator(ExpressionCollection collection) { this.wrapped = ((CollectionBase)collection).GetEnumerator(); }
public InPredicate(Column c) { _SubQueries = new ExpressionCollection(); _Column = c; }
public InPredicate(Column c, ExpressionCollection expressions) { _SubQueries = expressions; _Column = c; }