Beispiel #1
0
        /// <summary>
        /// Appends an OR restriction to this sub selectes last JOIN statements
        /// </summary>
        /// <param name="reference"></param>
        /// <returns></returns>
        public DBClause Or(DBClause reference)
        {
            IDBBoolean join = (IDBBoolean)this.Joins[this.Joins.Count - 1];

            join.Or(reference);
            return((DBClause)join);
        }
Beispiel #2
0
        /// <summary>
        /// Adds an OR comparison to the last join
        /// </summary>
        /// <param name="reference"></param>
        /// <returns></returns>
        public DBClause Or(DBClause reference)
        {
            if (this.HasJoins == false)
            {
                throw new InvalidOperationException("No joined tables or sub queries to join to");
            }

            IDBBoolean join = (IDBBoolean)this.Joins[this.Joins.Count - 1];

            join.Or(reference);
            return((DBClause)join);
        }