Share via


QueryableMethods Class

Definition

A class that provides reflection metadata for translatable LINQ methods.

public static class QueryableMethods
type QueryableMethods = class
Public Class QueryableMethods
Inheritance
QueryableMethods

Remarks

See Implementation of database providers and extensions and How EF Core queries work for more information and examples.

Properties

All

The MethodInfo for All<TSource>(IQueryable<TSource>, Expression<Func<TSource,Boolean>>)

AnyWithoutPredicate

The MethodInfo for Any<TSource>(IQueryable<TSource>)

AnyWithPredicate

The MethodInfo for Any<TSource>(IQueryable<TSource>, Expression<Func<TSource,Boolean>>)

AsQueryable

The MethodInfo for AsQueryable<TElement>(IEnumerable<TElement>)

Cast

The MethodInfo for Cast<TResult>(IQueryable)

Concat

The MethodInfo for Concat<TSource>(IQueryable<TSource>, IEnumerable<TSource>)

Contains

The MethodInfo for Contains<TSource>(IQueryable<TSource>, TSource)

CountWithoutPredicate

The MethodInfo for Count<TSource>(IQueryable<TSource>)

CountWithPredicate

The MethodInfo for Count<TSource>(IQueryable<TSource>, Expression<Func<TSource,Boolean>>)

DefaultIfEmptyWithArgument

The MethodInfo for DefaultIfEmpty<TSource>(IQueryable<TSource>, TSource)

DefaultIfEmptyWithoutArgument

The MethodInfo for DefaultIfEmpty<TSource>(IQueryable<TSource>)

Distinct

The MethodInfo for Distinct<TSource>(IQueryable<TSource>)

ElementAt

The MethodInfo for ElementAt<TSource>(IQueryable<TSource>, Int32)

ElementAtOrDefault

The MethodInfo for ElementAtOrDefault<TSource>(IQueryable<TSource>, Int32)

Except

The MethodInfo for Except<TSource>(IQueryable<TSource>, IEnumerable<TSource>)

FirstOrDefaultWithoutPredicate

The MethodInfo for FirstOrDefault<TSource>(IQueryable<TSource>, Expression<Func<TSource,Boolean>>)

FirstOrDefaultWithPredicate

The MethodInfo for FirstOrDefault<TSource>(IQueryable<TSource>, Expression<Func<TSource,Boolean>>)

FirstWithoutPredicate

The MethodInfo for First<TSource>(IQueryable<TSource>)

FirstWithPredicate

The MethodInfo for First<TSource>(IQueryable<TSource>, Expression<Func<TSource,Boolean>>)

GroupByWithKeyElementResultSelector

The MethodInfo for GroupBy<TSource,TKey,TElement,TResult>(IQueryable<TSource>, Expression<Func<TSource, TKey>>, Expression<Func<TSource,TElement>>, Expression<Func<TKey, IEnumerable<TElement>,TResult>>)

GroupByWithKeyElementSelector

The MethodInfo for GroupBy<TSource,TKey,TElement>(IQueryable<TSource>, Expression<Func<TSource,TKey>>, Expression<Func<TSource,TElement>>)

GroupByWithKeyResultSelector

The MethodInfo for GroupBy<TSource,TKey,TResult>(IQueryable<TSource>, Expression<Func<TSource,TKey>>, Expression<Func<TKey,IEnumerable<TSource>,TResult>>)

GroupByWithKeySelector

The MethodInfo for GroupBy<TSource,TKey>(IQueryable<TSource>, Expression<Func<TSource,TKey>>)

GroupJoin

The MethodInfo for GroupJoin<TOuter,TInner,TKey,TResult>(IQueryable<TOuter>, IEnumerable<TInner>, Expression<Func<TOuter,TKey>>, Expression<Func<TInner,TKey>>, Expression<Func<TOuter,IEnumerable<TInner>,TResult>>)

Intersect

The MethodInfo for Intersect<TSource>(IQueryable<TSource>, IEnumerable<TSource>)

Join

The MethodInfo for Join<TOuter,TInner,TKey,TResult>(IQueryable<TOuter>, IEnumerable<TInner>, Expression<Func<TOuter,TKey>>, Expression<Func<TInner,TKey>>, Expression<Func<TOuter,TInner,TResult>>)

LastOrDefaultWithoutPredicate

The MethodInfo for LastOrDefault<TSource>(IQueryable<TSource>, Expression<Func<TSource,Boolean>>)

LastOrDefaultWithPredicate

The MethodInfo for LastOrDefault<TSource>(IQueryable<TSource>, Expression<Func<TSource,Boolean>>)

LastWithoutPredicate

The MethodInfo for Last<TSource>(IQueryable<TSource>, Expression<Func<TSource,Boolean>>)

LastWithPredicate

The MethodInfo for Last<TSource>(IQueryable<TSource>, Expression<Func<TSource,Boolean>>)

LongCountWithoutPredicate

The MethodInfo for LongCount<TSource>(IQueryable<TSource>)

LongCountWithPredicate

The MethodInfo for LongCount<TSource>(IQueryable<TSource>, Expression<Func<TSource,Boolean>>)

MaxWithoutSelector

The MethodInfo for Max<TSource,TResult>(IQueryable<TSource>, Expression<Func<TSource,TResult>>)

MaxWithSelector

The MethodInfo for Max<TSource>(IQueryable<TSource>)

MinWithoutSelector

The MethodInfo for Min<TSource,TResult>(IQueryable<TSource>, Expression<Func<TSource,TResult>>)

MinWithSelector

The MethodInfo for Min<TSource>(IQueryable<TSource>)

OfType

The MethodInfo for OfType<TResult>(IQueryable)

OrderBy

The MethodInfo for OrderBy<TSource,TKey>(IQueryable<TSource>, Expression<Func<TSource,TKey>>)

OrderByDescending

The MethodInfo for OrderByDescending<TSource,TKey>(IQueryable<TSource>, Expression<Func<TSource,TKey>>)

Reverse

The MethodInfo for Reverse<TSource>(IQueryable<TSource>)

Select

The MethodInfo for Select<TSource,TResult>(IQueryable<TSource>, Expression<Func<TSource,TResult>>)

SelectManyWithCollectionSelector

The MethodInfo for SelectMany<TSource,TCollection,TResult>(IQueryable<TSource>, Expression<Func<TSource, IEnumerable<TCollection>>>, Expression<Func<TSource,TCollection, TResult>>)

SelectManyWithoutCollectionSelector

The MethodInfo for SelectMany<TSource,TResult>(IQueryable<TSource>, Expression<Func<TSource,IEnumerable<TResult>>>)

SingleOrDefaultWithoutPredicate

The MethodInfo for SingleOrDefault<TSource>(IQueryable<TSource>, Expression<Func<TSource,Boolean>>)

SingleOrDefaultWithPredicate

The MethodInfo for SingleOrDefault<TSource>(IQueryable<TSource>, Expression<Func<TSource,Boolean>>)

SingleWithoutPredicate

The MethodInfo for Single<TSource>(IQueryable<TSource>, Expression<Func<TSource,Boolean>>)

SingleWithPredicate

The MethodInfo for Single<TSource>(IQueryable<TSource>, Expression<Func<TSource,Boolean>>)

Skip

The MethodInfo for Skip<TSource>(IQueryable<TSource>, Int32)

SkipWhile

The MethodInfo for SkipWhile<TSource>(IQueryable<TSource>, Expression<Func<TSource,Boolean>>)

Take

The MethodInfo for Take<TSource>(IQueryable<TSource>, Int32)

TakeWhile

The MethodInfo for TakeWhile<TSource>(IQueryable<TSource>, Expression<Func<TSource,Boolean>>)

ThenBy

The MethodInfo for ThenBy<TSource,TKey>(IOrderedQueryable<TSource>, Expression<Func<TSource,TKey>>)

ThenByDescending

The MethodInfo for ThenByDescending<TSource,TKey>(IOrderedQueryable<TSource>, Expression<Func<TSource,TKey>>)

Union

The MethodInfo for Union<TSource>(IQueryable<TSource>, IEnumerable<TSource>)

Where

The MethodInfo for Where<TSource>(IQueryable<TSource>, Expression<Func<TSource,Boolean>>)

Methods

GetAverageWithoutSelector(Type)

Returns the MethodInfo for the Queryable.Average method without a selector for the given type.

GetAverageWithSelector(Type)

Returns the MethodInfo for the Queryable.Average method with a selector for the given type.

GetSumWithoutSelector(Type)

Returns the MethodInfo for the Queryable.Sum method without a selector for the given type.

GetSumWithSelector(Type)

Returns the MethodInfo for the Queryable.Sum method with a selector for the given type.

IsAverageWithoutSelector(MethodInfo)

Checks whether or not the given MethodInfo is one of the Queryable.Average without a selector.

IsAverageWithSelector(MethodInfo)

Checks whether or not the given MethodInfo is one of the Queryable.Average with a selector.

IsSumWithoutSelector(MethodInfo)

Checks whether or not the given MethodInfo is one of the Queryable.Sum without a selector.

IsSumWithSelector(MethodInfo)

Checks whether or not the given MethodInfo is one of the Queryable.Sum with a selector.

Applies to