/// <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); }
/// <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); }