命名空间System.Linq下的类Queryable

using System.Collections;
using System.Collections.Generic;
using System.Linq.Expressions;

namespace System.Linq
{
    public static class Queryable
    {

        //***************************************************Aggregate*****************************************************
        public static TResult Aggregate(this IQueryable source, TAccumulate seed, Expression> func, Expression> selector);
        public static TSource Aggregate(this IQueryable source, Expression> func);
        public static TAccumulate Aggregate(this IQueryable source, TAccumulate seed, Expression> func);

        //*****************************************************All、 Any******************************************************
        public static bool All(this IQueryable source, Expression> predicate);
        public static bool Any(this IQueryable source, Expression> predicate);
        public static bool Any(this IQueryable source);

        //******************************************************AsQueryable*****************************************************
        public static IQueryable AsQueryable(this IEnumerable source);
        public static IQueryable AsQueryable(this IEnumerable source);

        //******************************************************Average***********************************************************
        public static double Average(this IQueryable source);
        public static double Average(this IQueryable source);
        public static double? Average(this IQueryable source);
        public static double Average(this IQueryable source);
        public static double? Average(this IQueryable source);
        public static float Average(this IQueryable source);
        public static float? Average(this IQueryable source);
        public static double? Average(this IQueryable source);
        public static decimal Average(this IQueryable source);
        public static decimal? Average(this IQueryable source);
        public static double Average(this IQueryable source, Expression> selector);
        public static double? Average(this IQueryable source, Expression> selector);
        public static float Average(this IQueryable source, Expression> selector);
        public static float? Average(this IQueryable source, Expression> selector);
        public static double Average(this IQueryable source, Expression> selector);
        public static double? Average(this IQueryable source, Expression> selector);
        public static double Average(this IQueryable source, Expression> selector);
        public static double? Average(this IQueryable source, Expression> selector);
        public static decimal Average(this IQueryable source, Expression> selector);
        public static decimal? Average(this IQueryable source, Expression> selector);

        //*****************************************************Cast******************************************************
        public static IQueryable Cast(this IQueryable source);

        //****************************************************Concat**********************************************************
        public static IQueryable Concat(this IQueryable source1, IEnumerable source2);

        //***************************************************Contains**********************************************************
        public static bool Contains(this IQueryable source, TSource item, IEqualityComparer comparer);
        public static bool Contains(this IQueryable source, TSource item);

        //*****************************************************Count**************************************************************
        public static int Count(this IQueryable source, Expression> predicate);
        public static int Count(this IQueryable source);

        //*****************************************************DefaultIfEmpty************************************************
        public static IQueryable DefaultIfEmpty(this IQueryable source, TSource defaultValue);
        public static IQueryable DefaultIfEmpty(this IQueryable source);

        //*****************************************************Distinct************************************************************
        public static IQueryable Distinct(this IQueryable source, IEqualityComparer comparer);
        public static IQueryable Distinct(this IQueryable source);

        //***************************************************ElementAt********************************************************
        public static TSource ElementAt(this IQueryable source, int index);

        //****************************************************ElementAtOrDefault*********************************************
        public static TSource ElementAtOrDefault(this IQueryable source, int index);

        //********************************************************Except*********************************************************
        public static IQueryable Except(this IQueryable source1, IEnumerable source2);
        public static IQueryable Except(this IQueryable source1, IEnumerable source2, IEqualityComparer comparer);

        //********************************************************First**************************************************************
        public static TSource First(this IQueryable source);
        public static TSource First(this IQueryable source, Expression> predicate);

        //********************************************************FirstOrDefault***************************************************
        public static TSource FirstOrDefault(this IQueryable source, Expression> predicate);
        public static TSource FirstOrDefault(this IQueryable source);

        //*********************************************************GroupBy***************************************************
        public static IQueryable GroupBy(this IQueryable source, Expression> keySelector, Expression> elementSelector, Expression, TResult>> resultSelector);
        public static IQueryable GroupBy(this IQueryable source, Expression> keySelector, Expression, TResult>> resultSelector);
        public static IQueryable> GroupBy(this IQueryable source, Expression> keySelector, Expression> elementSelector);
        public static IQueryable GroupBy(this IQueryable source, Expression> keySelector, Expression> elementSelector, Expression, TResult>> resultSelector, IEqualityComparer comparer);
        public static IQueryable> GroupBy(this IQueryable source, Expression> keySelector);
        public static IQueryable GroupBy(this IQueryable source, Expression> keySelector, Expression, TResult>> resultSelector, IEqualityComparer comparer);
        public static IQueryable> GroupBy(this IQueryable source, Expression> keySelector, Expression> elementSelector, IEqualityComparer comparer);
        public static IQueryable> GroupBy(this IQueryable source, Expression> keySelector, IEqualityComparer comparer);
        //*****************************************************GruopJoin**************************************************
        public static IQueryable GroupJoin(this IQueryable outer, IEnumerable inner, Expression> outerKeySelector, Expression> innerKeySelector, Expression, TResult>> resultSelector, IEqualityComparer comparer);
        public static IQueryable GroupJoin(this IQueryable outer, IEnumerable inner, Expression> outerKeySelector, Expression> innerKeySelector, Expression, TResult>> resultSelector);

        //*****************************************************Intersect***********************************************************
        public static IQueryable Intersect(this IQueryable source1, IEnumerable source2, IEqualityComparer comparer);
        public static IQueryable Intersect(this IQueryable source1, IEnumerable source2);
        //*****************************************************Join*************************************************************
        public static IQueryable Join(this IQueryable outer, IEnumerable inner, Expression> outerKeySelector, Expression> innerKeySelector, Expression> resultSelector, IEqualityComparer comparer);
        public static IQueryable Join(this IQueryable outer, IEnumerable inner, Expression> outerKeySelector, Expression> innerKeySelector, Expression> resultSelector);

        //*******************************************************Last**************************************************************
        public static TSource Last(this IQueryable source);
        public static TSource Last(this IQueryable source, Expression> predicate);

        //******************************************************LastOrDefault****************************************************
        public static TSource LastOrDefault(this IQueryable source);
        public static TSource LastOrDefault(this IQueryable source, Expression> predicate);

        //*******************************************************LongCount********************************************************
        public static long LongCount(this IQueryable source, Expression> predicate);
        public static long LongCount(this IQueryable source);

        //*********************************************************Max***************************************************************
        public static TResult Max(this IQueryable source, Expression> selector);
        public static TSource Max(this IQueryable source);

        //*********************************************************Min***************************************************************
        public static TResult Min(this IQueryable source, Expression> selector);
        public static TSource Min(this IQueryable source);

        //*********************************************************OfType***********************************************************
        public static IQueryable OfType(this IQueryable source);

        //********************************************************OrderBy*****************************************************
        public static IOrderedQueryable OrderBy(this IQueryable source, Expression> keySelector, IComparer comparer);
        public static IOrderedQueryable OrderBy(this IQueryable source, Expression> keySelector);

        //************************************************************OrderByDescending***************************************
        public static IOrderedQueryable OrderByDescending(this IQueryable source, Expression> keySelector);
        public static IOrderedQueryable OrderByDescending(this IQueryable source, Expression> keySelector, IComparer comparer);

        //*******************************************************************Reverse**************************************************
        public static IQueryable Reverse(this IQueryable source);

        //*******************************************************************Select*****************************************************
        public static IQueryable Select(this IQueryable source, Expression> selector);
        public static IQueryable Select(this IQueryable source, Expression> selector);

        //************************************************************SelectMany*************************************************
        public static IQueryable SelectMany(this IQueryable source, Expression>> selector);
        public static IQueryable SelectMany(this IQueryable source, Expression>> selector);
        public static IQueryable SelectMany(this IQueryable source, Expression>> collectionSelector, Expression> resultSelector);
        public static IQueryable SelectMany(this IQueryable source, Expression>> collectionSelector, Expression> resultSelector);

        //*********************************************************SequenceEqual*********************************************
        public static bool SequenceEqual(this IQueryable source1, IEnumerable source2, IEqualityComparer comparer);
        public static bool SequenceEqual(this IQueryable source1, IEnumerable source2);

        //**********************************************************Single***********************************************************
        public static TSource Single(this IQueryable source, Expression> predicate);
        public static TSource Single(this IQueryable source);

        //****************************************************SingleOrDefault****************************************************
        public static TSource SingleOrDefault(this IQueryable source);
        public static TSource SingleOrDefault(this IQueryable source, Expression> predicate);

        //***********************************************************Skip*******************************************************
        public static IQueryable Skip(this IQueryable source, int count);

        //*****************************************************SkipWhile*************************************************************
        public static IQueryable SkipWhile(this IQueryable source, Expression> predicate);
        public static IQueryable SkipWhile(this IQueryable source, Expression> predicate);

        //****************************************************************Sum***************************************************
        public static decimal Sum(this IQueryable source, Expression> selector);
        public static decimal? Sum(this IQueryable source, Expression> selector);
        public static double? Sum(this IQueryable source, Expression> selector);
        public static double Sum(this IQueryable source, Expression> selector);
        public static int? Sum(this IQueryable source);
        public static float Sum(this IQueryable source, Expression> selector);
        public static int Sum(this IQueryable source);
        public static long Sum(this IQueryable source);
        public static long? Sum(this IQueryable source);
        public static float Sum(this IQueryable source);
        public static float? Sum(this IQueryable source);
        public static double Sum(this IQueryable source);
        public static double? Sum(this IQueryable source);
        public static float? Sum(this IQueryable source, Expression> selector);
        public static decimal Sum(this IQueryable source);
        public static decimal? Sum(this IQueryable source);
        public static int Sum(this IQueryable source, Expression> selector);
        public static long? Sum(this IQueryable source, Expression> selector);
        public static long Sum(this IQueryable source, Expression> selector);
        public static int? Sum(this IQueryable source, Expression> selector);

        //***********************************************************Take**************************************************
        public static IQueryable Take(this IQueryable source, int count);

        //*****************************************************TakeWhile****************************************************
        public static IQueryable TakeWhile(this IQueryable source, Expression> predicate);
        public static IQueryable TakeWhile(this IQueryable source, Expression> predicate);

        //**************************************************ThenBy*********************************************************
        public static IOrderedQueryable ThenBy(this IOrderedQueryable source, Expression> keySelector, IComparer comparer);
        public static IOrderedQueryable ThenBy(this IOrderedQueryable source, Expression> keySelector);

        //***************************************************ThenByDescending****************************************************
        public static IOrderedQueryable ThenByDescending(this IOrderedQueryable source, Expression> keySelector);
        public static IOrderedQueryable ThenByDescending(this IOrderedQueryable source, Expression> keySelector, IComparer comparer);

        //*******************************************************Union******************************************************************
        public static IQueryable Union(this IQueryable source1, IEnumerable source2, IEqualityComparer comparer);
        public static IQueryable Union(this IQueryable source1, IEnumerable source2);

        //*****************************************************Where**********************************************************************
        public static IQueryable Where(this IQueryable source, Expression> predicate);
        public static IQueryable Where(this IQueryable source, Expression> predicate);

        //************************************************Zip*************************************************************************************
        public static IQueryable Zip(this IQueryable source1, IEnumerable source2, Expression> resultSelector);
    }
}

你可能感兴趣的:(数据库)