LINQ

Querying collections, objects and databases from C#.

💡
This course has 3 lessons. Start with the first one and use the next / previous links at the bottom of each lesson — the sidebar keeps the whole course in order.

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

Last refreshed 2026-09-17.