Exemple #1
0
        public static IOracleSpecificTable <TSource> TableHint <TSource>(this IOracleSpecificTable <TSource> table, [SqlQueryDependent] string hint)
            where TSource : notnull
        {
            table.Expression = Expression.Call(
                null,
                MethodHelper.GetMethodInfo(TableHint, table, hint),
                table.Expression, Expression.Constant(hint));

            return(table);
        }
Exemple #2
0
        static IOracleSpecificTable <TSource> TableHintWithComma <TSource, TParam>(
            this IOracleSpecificTable <TSource> table,
            [SqlQueryDependent] string hint,
            [SqlQueryDependent] TParam hintParameter)
            where TSource : notnull
        {
            table.Expression = Expression.Call(
                null,
                MethodHelper.GetMethodInfo(TableHintWithComma, table, hint, hintParameter),
                table.Expression, Expression.Constant(hint), Expression.Constant(hintParameter));

            return(table);
        }
Exemple #3
0
        public static IOracleSpecificTable <TSource> TableHint <TSource, TParam>(
            this IOracleSpecificTable <TSource> table,
            [SqlQueryDependent] string hint,
            [SqlQueryDependent] params TParam[] hintParameters)
            where TSource : notnull
        {
            table.Expression = Expression.Call(
                null,
                MethodHelper.GetMethodInfo(TableHint, table, hint, hintParameters),
                table.Expression,
                Expression.Constant(hint),
                Expression.NewArrayInit(typeof(TParam), hintParameters.Select(p => Expression.Constant(p, typeof(TParam)))));

            return(table);
        }
Exemple #4
0
 public static IOracleSpecificTable <TSource> DynamicSamplingHint <TSource>(this IOracleSpecificTable <TSource> table, int value)
     where TSource : notnull
 {
     return(TableHint(table, Hint.DynamicSampling, value));
 }
Exemple #5
0
 public static IOracleSpecificTable <TSource> NoParallelIndexHint <TSource>(this IOracleSpecificTable <TSource> table, params object[] values)
     where TSource : notnull
 {
     return(TableHintWithComma(table, Hint.NoParallelIndex, values));
 }
Exemple #6
0
 public static IOracleSpecificTable <TSource> PQDistributeHint <TSource>(this IOracleSpecificTable <TSource> table, string outerDistribution, string innerDistribution)
     where TSource : notnull
 {
     return(TableHintWithComma2(table, Hint.PQDistribute, outerDistribution, innerDistribution));
 }
Exemple #7
0
 public static IOracleSpecificTable <TSource> ParallelDefaultHint <TSource>(this IOracleSpecificTable <TSource> table)
     where TSource : notnull
 {
     return(TableHintWithComma(table, Hint.Parallel, "DEFAULT"));
 }
Exemple #8
0
 public static IOracleSpecificTable <TSource> ParallelHint <TSource>(this IOracleSpecificTable <TSource> table, int value)
     where TSource : notnull
 {
     return(TableHintWithComma(table, Hint.Parallel, value));
 }