public static DBTableHintOption WithHint(DBTableHint hint) { DBTableHintOption with = new DBTableHintOptionRef(); with.Option = hint; return(with); }
public static DBTableHintOption WithHint(DBTableHint hint, string[] parameters) { DBTableHintOption with = WithHint(hint); with.Parameters = parameters; return(with); }
public DBTableHintSet WithHint(DBTableHint hint, params string[] options) { DBTableHintOption opt = DBTableHintOption.WithHint(hint, options); this.WithHint(opt); return(this); }
// // Instance methods - each adds a new hint to the collection and returns the owner table // public DBTableHintSet WithHint(DBTableHint hint) { DBTableHintOption opt = DBTableHintOption.WithHint(hint); this.WithHint(opt); return(this); }
/// <summary> /// Adds a specific query hint with options to the current table in this statement /// </summary> /// <param name="hint"></param> /// <param name="options"></param> /// <returns></returns> public DBTableSet WithHint(DBTableHint hint, params string[] options) { if (this.Last is DBTable) { this.Last = (this.Last as DBTable).WithHint(hint, options); } else { throw new InvalidOperationException(Errors.NoRootOrLastForHint); } return(this); }
/// <summary> /// Appends a Query execution table hint and option /// </summary> /// <param name="hint"></param> /// <param name="options"></param> /// <returns></returns> public DBTable WithHint(DBTableHint hint, params string[] options) { this.Hints.WithHint(hint, options); return(this); }
/// <summary> /// Appends a Query execution table hint /// </summary> /// <param name="hint"></param> /// <returns></returns> public DBTable WithHint(DBTableHint hint) { this.Hints.WithHint(hint); return(this); }