LINQ

Querying collections, objects and databases from C#.

LINQ is taught here in 3 lessons, running from Query syntax and method syntax through to Deferred execution and querying a database. Each lesson takes one topic, shows the working code, and links onward to the next, so the course can be read straight through in order.

Track.NET
Lessons3
LevelBeginner
Reading timeabout 39 minutes
PrerequisitesHelpful, but not required: ASP.NET Core

Lessons

  1. Query syntax and method syntaxThe two spellings of LINQ, how the compiler rewrites one into the other, and which to reach for in a given situation.
  2. Common LINQ operatorsFiltering, projection, ordering, aggregation and the element operators, with the traps that produce exceptions in production.
  3. Deferred execution and querying a databaseWhy a query does nothing until you enumerate it, the IEnumerable versus IQueryable divide, and how EF Core turns expressions into SQL.

More in .NET

.NET ASP.NET Core WinForms WPF

FAQ

How long does the LINQ course take?
It has 3 lessons, about 39 minutes of reading. Expect roughly twice that if you type out and run every example.
Do I need prior experience for LINQ?
Not strictly. It helps to have read ASP.NET Core first, because some lessons build on it, but every lesson explains its own assumptions.
What should I read after LINQ?
Continue with WinForms (3 lessons), the next course in .NET.

Last refreshed 2026-09-18.