Example #1
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);
        }
Example #2
0
		public DeleteCommand(ITagMapping tag, string table_name, WhereClause condition): base (tag, table_name)
		{
			_Condition = condition;
		}
Example #3
0
		public virtual void Visit(WhereClause whereClause)
		{
			if (whereClause.SearchCondition.Count != 0)
			{
				_Query.Append(WHERE);
				foreach(ILogicExpression exp in whereClause.SearchCondition)
				{
					_Query.Append(OPENBRACE);
					exp.Accept(this);
					_Query.Append(CLOSEBRACE);
					if (whereClause.SearchCondition.IndexOf(exp) != whereClause.SearchCondition.Count - 1)
						Visit(whereClause.DefaultOperator);
				}
			}
		}