Пример #1
0
        public DBUpdateQuery OrWhere(DBClause left, Compare op, DBClause right)
        {
            _where = _where.Or(left, op, right);
            _last  = _where;

            return(this);
        }
Пример #2
0
        /// <summary>
        /// Creates a further where clause in this DBDeleteQuery using the specified comparison.
        /// Then combines with the previous filter in a boolean OR operation
        /// </summary>
        /// <param name="comparison">The comparison filter</param>
        /// <returns>Itself so further statements can be combined</returns>
        public DBDeleteQuery OrWhere(DBClause comparison)
        {
            if (null == _where)
            {
                throw new NullReferenceException(Errors.CannotAppendWhereClauseWithoutInitial);
            }

            _where = _where.Or(comparison);
            _last  = _where;

            return(this);
        }