liveBook · Manning

Skip

As explained in Building Web APIs with ASP.NET Core

The Skip method is a LINQ sequence operation that omits a specified number of elements from the beginning of a sequence.

Skip is a LINQ sequence operation that omits a specified number of elements from the beginning of a sequence. In a paged board-game API, pageIndex multiplied by pageSize determines how many records to omit before returning the requested page. section 5.4.1

The paging query uses Skip(pageIndex * pageSize) followed by Take(pageSize). With zero-based pageIndex values, the first page skips zero records; default values of 0 and 10 provide a usable first page when clients omit parameters. section 5.4.1

How Building Web APIs with ASP.NET Core covers it

How deep it goes
Explains the paging formula and zero-based behavior, but stops short of deeper query-provider internals.
Examples
Demonstrates Skip in BoardGameController.Get alongside Take, default parameters, and RestDTO paging properties.
What it assumes
Assumes familiarity with EF Core queries and teaches zero-based page indexing through the paging implementation.
What you can do after
Operate/configure paged API queries by calculating the offset from pageIndex and pageSize.
How it connects
Connects LINQ, EF Core, Take, paging, page indexes, page sizes, and REST response metadata.

Also explained in

Compare how 2 books explain skip →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Building Web APIs with ASP.NET Core. The section links point to the parts of the book it draws on.