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

            with.Option = hint;
            return(with);
        }
예제 #2
0
        public static DBTableHintOption WithHint(DBTableHint hint, string[] parameters)
        {
            DBTableHintOption with = WithHint(hint);

            with.Parameters = parameters;
            return(with);
        }
예제 #3
0
        public DBTableHintSet WithHint(DBTableHint hint, params string[] options)
        {
            DBTableHintOption opt = DBTableHintOption.WithHint(hint, options);

            this.WithHint(opt);
            return(this);
        }
예제 #4
0
        //
        // 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);
        }
예제 #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);
 }
예제 #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);
 }
예제 #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);
 }