Chapter 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 ...

Get C# 8.0 and .NET Core 3.0 – Modern Cross-Platform Development - Fourth 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.