Is an IQueryable a query or just an object which can be queried?

Posted by Albic on Stack Overflow See other posts from Stack Overflow or by Albic
Published on 2009-12-27T19:25:44Z Indexed on 2010/04/09 13:33 UTC
Read the original article Hit count: 316

Filed under:
|
|

I'm kinda confused what the IQueryable interface actually represents.

The MSDN documentation for IQueryable says: "Provides functionality to evaluate queries against a specific data source."

The documentation for IQueryProvider says: "Defines methods to create and execute queries that are described by an IQueryable object."

The name and the documentation summary suggest that it is an object/data store which can be queried. The second quote and the fact the ObjectQuery class from the Entity Framework implements IQueryable suggest it is a query which can be executed.

Did I misunderstood something or is it really kinda fuzzy?

© Stack Overflow or respective owner

Related posts about .net-3.5

Related posts about LINQ