コード例 #1
0
ファイル: ISQLExpression.cs プロジェクト: npenin/uss
		/// <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);
			}
		}
コード例 #2
0
ファイル: SelectStatement.cs プロジェクト: npenin/uss
        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);
        }
コード例 #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;
 }
コード例 #4
0
ファイル: ISQLExpression.cs プロジェクト: npenin/uss
		/// <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);
		}
コード例 #5
0
ファイル: ISQLExpression.cs プロジェクト: npenin/uss
			/// <summary>
			/// 
			/// </summary>
			/// <param name="collection"></param>
			public Enumerator(ExpressionCollection collection)
			{
				this.wrapped = ((CollectionBase)collection).GetEnumerator();
			}
コード例 #6
0
ファイル: InPredicate.cs プロジェクト: npenin/uss
		public InPredicate(Column c)
		{
			_SubQueries = new ExpressionCollection();
			_Column = c;
		}
コード例 #7
0
ファイル: InPredicate.cs プロジェクト: npenin/uss
		public InPredicate(Column c, ExpressionCollection expressions)
		{
			_SubQueries = expressions;
			_Column = c;
		}