Exemple #1
0
        public static DBTableHintOption WithHint(DBTableHint hint)
        {
            DBTableHintOption with = new DBTableHintOptionRef();

            with.Option = hint;
            return(with);
        }
Exemple #2
0
        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);
        }
Exemple #5
0
 /// <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);
 }
Exemple #6
0
 /// <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);
 }
Exemple #7
0
 /// <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);
 }