Table of Contents

Interface IEntityQueryProvider

Namespace
System.Linq
Assembly
Instagile.dll

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

IReadOnlyCollection<IsolatedQuery>

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

expression Expression

An expression tree that represents a LINQ query.

level FilterLevel

Hierarchical 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

expression Expression

An expression tree that represents a LINQ query.

level FilterLevel

Hierarchical 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.