Esempio n. 1
0
		/// <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);
			}
		}
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 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;
 }
Esempio n. 4
0
		/// <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);
		}
Esempio n. 5
0
			/// <summary>
			/// 
			/// </summary>
			/// <param name="collection"></param>
			public Enumerator(ExpressionCollection collection)
			{
				this.wrapped = ((CollectionBase)collection).GetEnumerator();
			}
Esempio n. 6
0
		public InPredicate(Column c)
		{
			_SubQueries = new ExpressionCollection();
			_Column = c;
		}
Esempio n. 7
0
		public InPredicate(Column c, ExpressionCollection expressions)
		{
			_SubQueries = expressions;
			_Column = c;
		}