Esempio n. 1
0
    /// <summary>
    ///
    /// </summary>
    /// <param name="source"></param>
    /// <param name="selector"></param>
    /// <param name="variables"></param>
    /// <returns></returns>
    public static IOrderedQueryable ThenByDescending(this IOrderedQueryable source, string selector, IDictionary <string, dynamic>?variables = null)
    {
        Check.NotNull(source, nameof(source));
        Check.NotEmpty(selector, nameof(selector));

        var keySelectorLambda = ExpressionParser.ParseLambda(source.ElementType, selector, variables);

        return((IOrderedQueryable)source.CreateQuery(Methods.ThenByDescendingWithSelector, keySelectorLambda));
    }