12

Querying and Manipulating Data Using LINQ

This chapter is about Language Integrated Query (LINQ), a set of language extensions that add the ability to work with sequences of items and then filter, sort, and project them into different outputs.

This chapter will cover the following topics:

  • Writing LINQ queries
  • Working with sets using LINQ
  • Using LINQ with EF Core
  • Sweetening LINQ syntax with syntactic sugar
  • Using multiple threads with parallel LINQ
  • Creating your own LINQ extension methods
  • Working with LINQ to XML

Writing LINQ queries

Although we wrote a few LINQ queries in Chapter 11, Working with Databases Using Entity Framework Core, they weren't the focus, and so I didn't properly explain how LINQ works, but let's now take time to properly ...

Get C# 9 and .NET 5 – Modern Cross-Platform Development - Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.