LINQ
LINQ is a .NET query technology that provides a consistent way to query and transform data from collections and other data sources.
.NET in Action, Second Edition
Language Integrated Query (LINQ) is a .NET language-integrated query technology for querying collections and data sources with a common syntax.
- How it is used
- Uses LINQ to shape a reflected font collection for an ASP.NET Core service endpoint.
- How deep it goes
- Works through projection, method translation, paging, filtering, and sorting; defers database querying to a later chapter.
- Examples
- Shows reflected font names, equivalent query and method forms, and endpoint handlers with paging and optional filters.
- What you can do after
- Apply it via C# LINQ and ASP.NET Core minimal APIs to project, filter, sort, and page a collection.
Building Web APIs with ASP.NET Core
LINQ is a .NET language-integrated query facility that provides a uniform syntax and API for querying and transforming data from different sources.
- How it is used
- Supports CRUD operations by querying and transforming database-backed objects through a unified C# API.
- How deep it goes
- Traces syntax, operators, interfaces, expression trees, SQL translation, chaining, and deferred execution.
- Examples
- Uses board-game arrays, year filtering, chained ordering, DbSet queries, expression trees, and ToArray() materialization.
- What you can do after
- Apply it via EF Core to implement filtering, ordering, and other CRUD queries without writing each SQL statement manually.
Read how Building Web APIs with ASP.NET Core explains LINQ →
Pro ASP.NET Core 7, Tenth Edition
LINQ is the .NET language-integrated query capability for expressing queries and filtering operations over data sources.
- How it is used
- Queries Entity Framework Core data for endpoint responses and Blazor component output.
- How deep it goes
- Works through an endpoint lookup and generated SQL, then diagnoses repeated execution; does not teach LINQ syntax from zero.
- Examples
- Uses a stored sum lookup, its SQL command log, and duplicate queries from a Blazor people list.
- What you can do after
- Diagnose/debug with it by inspecting generated SQL and identifying queries repeated by endpoint requests or component renders.
Also covered in
- Functional Programming in C#, Second Edition
- ASP.NET Core in Action, 3e
- F# in Action: A Revised Edition of Get Programming with F#
What to know first
- lambdaA lambda is an expression that defines an unnamed function, specifying its parameters and body and producing a callable value.
Related concepts
- Whereuses · Where is a function that retains an Option’s value when its predicate is true and otherwise returns None.
- Entity Framework Coreused by · Entity Framework Core is a cross-platform object-relational mapper for .NET that enables applications to work with databases through .NET objects and queries.
- orderBy clauseused by · An orderBy clause or operation specifies the key or criteria by which query results or sequence elements are ordered.
- Aggregateuses · Aggregate is a collection operation that repeatedly applies an accumulator function to a sequence’s elements to produce a result.
- binduses · Bind is an operation that chains a value in a computational context to a function returning another value in that context, flattening the resulting nested context.
Questions about LINQ
What is LINQ?
LINQ is a .NET query technology that provides a consistent way to query and transform data from collections and other data sources.
Which Manning books explain LINQ?
.NET in Action, Second Edition, Building Web APIs with ASP.NET Core and Pro ASP.NET Core 7, Tenth Edition.
What should I know before learning LINQ?
Manning books that teach LINQ usually introduce C# and lambda first.
What is LINQ also called?
LINQ is also called Language Integrated Query.
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.


