C# 3 added one of the most revolutionary features of any programming language, and that's none other than LINQ. LINQ has been a flagship feature of C#. Data querying is a fundamental feature of any programming language, but not every language gives developers the tools to do it in an elegant way that reads naturally and is extremely powerful. Even though most developers will get introduced to LINQ early in their C# journey, only a few know how to use it effectively and get the most out of it with the least amount of code. With heavy Microsoft investment, LINQ is improving in every .NET version with better performance and adding new features. In this course, Hannes Lowette will teach you everything there is to know about LINQ and equip you with the knowledge to tackle and querying tasks, whether big or small.
Welcome
What will you learn in this course?
Who is the course for and prerequisites
Why do we have LINQ?
A language for querying data
A first LINQ example
Why would you want to use LINQ?
Section recap
Introduction to our demo solution
Using a simple where clause
Refactoring statements into functions
Chaining multiple where clauses
Ordering data
Multi-level ordering
Using a custom comparer to order
Section recap
What is deferred execution in LINQ?
Retrieving all results
Retrieving a single item
Projecting the data to another shape
Section recap
Introduction to getting partial results
Splitting results into chunks
Using Skip, Take and TakeWhile to retrieve a specific result
Dividing results into logical parts with GroupBy
Section recap
Introduction
Removing duplicates
Checking for a single item
Verifying all items
Using aggregate functions
Checking if 2 sequences are equal
Section recap
Introduction
Concatenate two results
Set operations on queries with the same type
Exploding a subquery with SelectMany
Join operations between 2 results
Section recap
Introduction
IQueryable vs IEnumerable
What can we write LINQ against?
Making some IEnumerable methods ourselves
IQueryable behind the scenes
Section recap
Why would we want to parallelize our queries?
Introduction to PLINQ
Things to consider when using PLINQ
Potential pitfalls
Section recap
Conclusion
Course Info
Lifetime access
Add to Cart
With 20 years in .NET development, Hannes has always been passionate about performance, databases, distributed systems and large-scale applications. When it comes to architecture, his opinions have become a bit more nuanced, and the "it depends" card, however boring, gets played in many technical discussions. Hannes has always had a passion for sharing knowledge. It doesn't matter whether it is one-to-one while pair programming, on a conference stage giving a talk or when he's helping people succeed in their careers as a coach. In his free time, when he's not building LEGO® castles with his three kids, he likes to stream his guitar building on Twitch and spends too much time playing online chess and doing all-around geeky stuff. You can always lure him into a chat over a glass of great Whisky.
More courses by Hannes Lowette© 2023 Dometrain. All rights reserved.