Looking for good LINQ concepts tutorial
Loading
Looking for good LINQ concepts tutorial
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Adarsh NigamRank #950 · 2.1K reputationPosted Sep 26, 2024, 11:36 AM EDT
For a good LINQ concepts tutorial, here are some recommended resources and key concepts to explore:
### Online Tutorials:
1. **[Microsoft Docs: LINQ (Language Integrated Query)](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/linq/)**
A comprehensive guide from Microsoft, covering all aspects of LINQ, including syntax, usage, and examples.
2. **[LINQ Tutorial by TutorialsTeacher](https://www.tutorialsteacher.com/linq)**
This is an easy-to-follow tutorial with examples on how LINQ works. It covers LINQ syntax, methods, and the most common operations like filtering, projection, and aggregation.
3. **[LINQ Samples by DotNetFiddle](https://dotnetfiddle.net/)**
You can practice LINQ queries online with real-time execution and examples to test different LINQ scenarios.
4. **[LINQPad](https://www.linqpad.net/)**
LINQPad is an interactive tool for writing LINQ queries. It’s widely recommended for learning as it allows you to test LINQ queries directly with a rich interface.
### Key Concepts to Focus On:
1. **LINQ Syntax:**
- Query Syntax (`from x in ... select ...`) vs. Method Syntax (`.Where(...).Select(...)`).
2. **LINQ to Objects:**
- Basic operations such as `Select`, `Where`, `GroupBy`, `OrderBy`, `Join`, etc.
3. **Deferred vs Immediate Execution:**
- Understanding when queries are executed, i.e., how `IEnumerable` vs `IQueryable` behaves with LINQ.
4. **LINQ to Entities:**
- How LINQ works with Entity Framework for querying databases using `DbSet`.
5. **Projection and Transformation:**
- Use of `Select`, `SelectMany` to transform data into different shapes.
With these tutorials and concepts, you'll be able to grasp LINQ fundamentals quickly!
Mariusz PostolRank #650 · 3.7K reputationPosted Sep 26, 2024, 3:02 PM EDT
I wanna to add: Programming in Practice - LINQ to SQL - Explained at
Let me know in case of questions or doubts you may have.
Vishal YelveRank #178 · 13.6K reputationPosted Sep 27, 2024, 2:30 AM EDT
Hi kerenshor,
you can refer to my articles below
https://www.c-sharpcorner.com/article/linq-methods/
https://www.c-sharpcorner.com/article/misconceptions-about-the-four-linq-methods/
Also, on YouTube, you can refer to Kudvenket
https://www.youtube.com/playlist?list=PL6n9fhu94yhWi8K02Eqxp3Xyh_OmQ0Rp6
https://www.youtube.com/playlist?list=PL6n9fhu94yhX-U0Ruy_4eIG8umikVmBrk
https://www.youtube.com/playlist?list=PL6n9fhu94yhXCHPed2Q9oBkgvzw9Re8hC
Jignesh KumarRank #91 · 22.9K reputationPosted Sep 26, 2024, 11:39 PM EDT
Hello Keronshor,
Please find below links which will help you,
https://www.c-sharpcorner.com/article/linq-for-beginners/
https://www.c-sharpcorner.com/article/linq-extension-methods/
https://www.c-sharpcorner.com/article/linq-extension-methods-element-and-set-operator-part-thre/
https://www.tutorialsteacher.com/linq