Interface IEntityQueryProvider
Defines methods to create and execute queries that are described by an IEntityQuery object.
public interface IEntityQueryProvider : IAsyncQueryProvider, IStoreQueryProvider
- Inherited Members
Remarks
The IQueryProvider interface is intended for implementation by query providers.
Properties
IncludedQueries
IReadOnlyCollection<IsolatedQuery> IncludedQueries { get; }
Property Value
Methods
CreateQuery(Expression, FilterLevel)
Constructs an IEntityQuery object that can evaluate the query represented by a specified expression tree.
IEntityQuery CreateQuery(Expression expression, FilterLevel level)
Parameters
expressionExpressionAn expression tree that represents a LINQ query.
levelFilterLevelHierarchical caching key.
Returns
- IEntityQuery
An IEntityQuery that can evaluate the query represented by the specified expression tree.
Remarks
The CreateQuery method is used to create new IEntityQuery objects, given an expression tree. The query that is represented by the returned object is associated with a specific LINQ provider. Several of the standard query operator methods defined in Queryable, such as OfType{TResult} and Cast{TResult}, call this method. They pass it a MethodCallExpression that represents a LINQ query.
CreateQuery<TElement>(Expression, FilterLevel)
Constructs an IEntityQuery<T> object that can evaluate the query represented by a specified expression tree.
IEntityQuery<TElement> CreateQuery<TElement>(Expression expression, FilterLevel level)
Parameters
expressionExpressionAn expression tree that represents a LINQ query.
levelFilterLevelHierarchical caching key.
Returns
- IEntityQuery<TElement>
An IEntityQuery<T> that can evaluate the query represented by the specified expression tree.
Type Parameters
TElement
Remarks
The CreateQuery<TElement>(Expression, FilterLevel) method is used to create new IEntityQuery<T> objects, given an expression tree. The query that is represented by the returned object is associated with a specific LINQ provider. Most of the Queryable standard query operator methods that return enumerable results call this method.They pass it a MethodCallExpression that represents a LINQ query.