Is an IQueryable a query or just an object which can be queried?
- by Albic
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?