Ejemplo n.º 1
0
        public DBUpdateQuery AndWhere(DBClause left, Compare op, DBClause right)
        {
            _where = _where.And(left, op, right);
            _last  = _where;

            return(this);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates a futher where clause in this DBDeleteQuery using the left and right
        /// clauses as operands in the comparison. Then combines with the previous filter in a boolean AND operation
        /// </summary>
        /// <param name="left">The left operand</param>
        /// <param name="op">The comparison type - Equals etc...</param>
        /// <param name="right">The right operand</param>
        /// <returns>Itself so further statements can be chained</returns>
        public DBDeleteQuery AndWhere(DBClause left, Compare op, DBClause right)
        {
            if (null == _where)
            {
                throw new NullReferenceException(Errors.CannotAppendWhereClauseWithoutInitial);
            }

            _where = _where.And(left, op, right);
            _last  = _where;

            return(this);
        }