Exemple #1
0
 internal static TSource Max <TSource>(ISpListItemsProvider listItemsProvider, QueryModel queryModel)
 {
     return(listItemsProvider.Fetch <TSource>(queryModel)
            .Max());
 }
Exemple #2
0
 internal static IEnumerable <T> Fetch <T>(ISpListItemsProvider listItemsProvider, QueryModel queryModel)
 {
     return(listItemsProvider.Fetch <T>(queryModel));
 }
Exemple #3
0
 internal static TResult Max <TSource, TResult>(ISpListItemsProvider listItemsProvider,
                                                QueryModel queryModel, Func <TSource, TResult> selector)
 {
     return(listItemsProvider.Fetch <TSource>(queryModel)
            .Max(selector));
 }
Exemple #4
0
 internal static IEnumerable <TResult> Select <TSource, TResult>(ISpListItemsProvider listItemsProvider,
                                                                 QueryModel queryModel, Func <TSource, TResult> selector)
 {
     return(listItemsProvider.Fetch <TSource>(queryModel)
            .Select(selector));
 }