Select
Select is a LINQ sequence operator that transforms each source element into a corresponding projected result.
.NET in Action, Second Edition
Select is a LINQ extension method that projects each element of an enumerable sequence into a new form.
- How it is used
- Projects reflected font properties into names or name-and-font tuples for a web service’s font listing.
- How deep it goes
- Shows query syntax, its Select method equivalent, and two output shapes; stops short of implementing the extension method.
- Examples
- Uses PropertyInfo-to-name and PropertyInfo-to-tuple projections while building an ASCII-art font endpoint.
- What you can do after
- Apply it via LINQ to select the output fields a sequence or service response needs.
ASP.NET Core in Action, 3e
A select clause is a LINQ query operation that projects source elements into a specified result shape.
- How it is used
- Projects EF Core entities into API-facing view models while limiting database columns to those required by the result.
- How deep it goes
- Explains projection, SQL execution, nested mapping, and client-side fallback for expressions EF Core cannot translate.
- Examples
- Uses recipe lists, summary view models, detail view models, formatted cooking times, and nested ingredients as projection examples.
- What you can do after
- Apply it via EF Core to return filtered lists or individual records as efficiently shaped view models.
Related concepts
- mapequivalent to · An operation that applies a function to values in a collection or computational context, producing corresponding results while preserving the collection or context’s structure.
- IEnumerableuses · IEnumerable is a .NET interface representing a sequence whose elements can be traversed through an enumerator.
- LINQpart of · LINQ is a .NET language-integrated query technology for querying and transforming data from collections and other data sources.
- Entity Framework Coreuses · Entity Framework Core is a cross-platform object-relational mapping framework for .NET that enables applications to query and persist data through .NET objects and APIs.
- selectequivalent to · SELECT is a SQL query construct that specifies the rows, columns, or expressions retrieved from one or more queryable data sources.
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.

