IQueryable
IQueryable is a .NET interface for representing queryable data sources whose query expressions can be composed and interpreted or executed by a query provider.
Building Web APIs with ASP.NET Core
IQueryable<T> is a generic .NET interface representing a queryable data source of a specified element type whose query can be composed and translated by a provider.
- How it is used
- Uses queryable sets to retrieve board-game data in a web API and expose entity queries through GraphQL.
- How deep it goes
- Explains query composition, expression trees, SQL translation, and execution with ToArray, while assuming familiarity with polymorphism.
- Examples
- Uses board-game queries filtered by year and ordered by name, plus GraphQL methods returning board games, domains, and mechanics.
- What you can do after
- Apply it via EF Core to compose and execute database queries and expose queryable sets to HotChocolate.
Read how Building Web APIs with ASP.NET Core explains IQueryable →
.NET in Action, Second Edition
IQueryable is a LINQ interface representing a queryable data source whose query expression can be interpreted by a provider.
- How it is used
- Uses IQueryable to compose EF Core catalog queries as request filters, sorting, and paging vary.
- How deep it goes
- Defines IQueryable through IEnumerable and demonstrates DbSet queries, but does not explain provider internals.
- Examples
- Shows an ordered Book query after SaveChanges() and a catalog GET action initialized with IQueryable<Book>.
- What you can do after
- Apply it via EF Core to compose catalog queries and add request-controlled sorting and paging.
Read how .NET in Action, Second Edition explains IQueryable →
Pro ASP.NET Core 7, Tenth Edition
IQueryable<T> is a .NET interface representing a queryable sequence whose query operations can be translated and executed by an underlying data provider.
- How it is used
- Exposes database-backed objects through a repository and lets Blazor components compose queries before fetching results.
- How deep it goes
- Explains query composition, database execution, and repeated enumeration through repository and component examples, without detailing provider translation internals.
- Examples
- Shows an IQueryable<Product> repository property and Sort buttons that contrast a new database query with sorting existing results.
- What you can do after
- Apply it via Entity Framework Core to compose queries and recognize when enumeration or sorting sends another database request.
Read how Pro ASP.NET Core 7, Tenth Edition explains IQueryable →
ASP.NET Core in Action, 3e
IQueryable is a .NET interface for representing queries whose expression trees can be translated and executed by a data source.
- How it is used
- Represents composable database queries that EF Core translates into SQL before retrieving records.
- How deep it goes
- Explains composition, SQL translation, execution methods, projection, and limited client-side evaluation without covering provider internals.
- Examples
- Uses a RecipeService query that filters deleted recipes, projects RecipeSummaryViewModel objects, and calls ToListAsync().
- What you can do after
- Apply it via EF Core to filter, project, and asynchronously load database records efficiently.
Related concepts
- DbSet<T>includes · DbSet<T> is an Entity Framework Core type representing a queryable and persistable set of entities of type T within a database context.
- IEnumerable<T>kind of · IEnumerable<T> is a .NET generic interface representing a sequence whose elements of type T can be traversed through an enumerator.
- expression treeproduces · An expression tree is a tree-structured representation of an expression whose nodes represent its constituent operations, operands, and values.
- IEnumerablekind of · IEnumerable is a .NET interface for objects that provide an enumerator to traverse a sequence of elements.
- SQLproduces · SQL is a standardized declarative language for defining, querying, and manipulating data in relational database systems.
Questions about IQueryable
What is IQueryable?
IQueryable is a .NET interface for representing queryable data sources whose query expressions can be composed and interpreted or executed by a query provider.
Which Manning books explain IQueryable?
Building Web APIs with ASP.NET Core, .NET in Action, Second Edition, Pro ASP.NET Core 7, Tenth Edition and ASP.NET Core in Action, 3e.
What kinds of IQueryable are there?
Kinds of IQueryable include DbSet<T>.
What is IQueryable a kind of?
IQueryable is a kind of IEnumerable<T>. IEnumerable<T> is a .NET generic interface representing a sequence whose elements of type T can be traversed through an enumerator.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.



