System.Linq.IQueryable<T>

Provides functionality to evaluate queries against a specific data source wherein the type of the data is known.

See Also: IQueryable<T> Members

Syntax

public interface IQueryable<T> : IEnumerable<T>, IQueryable

Type Parameters

T
Documentation for this section has not yet been entered.

Remarks

The System.Linq.IQueryable`1 interface is intended for implementation by query providers.

This interface inherits the IEnumerable`1 interface so that if it represents a query, the results of that query can be enumerated. Enumeration forces the expression tree associated with an System.Linq.IQueryable`1 object to be executed. Queries that do not return enumerable results are executed when the IQueryProvider.Execute``1(System.Linq.Expressions.Expression) method is called.

The definition of "executing an expression tree" is specific to a query provider. For example, it may involve translating the expression tree to a query language appropriate for an underlying data source.

The System.Linq.IQueryable`1 interface enables queries to be polymorphic. That is, because a query against an IQueryable data source is represented as an expression tree, it can be executed against different types of data sources.

The static (Shared in Visual Basic) methods defined in the class System.Linq.Queryable (except for erload:System.Linq.Queryable.AsQueryable, erload:System.Linq.Queryable.ThenBy, and erload:System.Linq.Queryable.ThenByDescending) extend objects of types that implement the System.Linq.IQueryable`1 interface.

For more information about how to create your own LINQ provider, see tp://go.microsoft.com/fwlink/?LinkID=112370 on MSDN Blogs.

Requirements

Namespace: System.Linq
Assembly: System.Core (in System.Core.dll)
Assembly Versions: 3.5.0.0, 4.0.0.0