SlideShare a Scribd company logo
Visual Studio 2008 Training 3.5 RTM Mohamed Saleh [email_address] www.jordev.net www.geeksconnected.com/mohamed
Module 3:  Introduction To Linq
Overview   What is Linq Understand the Query Expressions and Query Operators Writing queries using extension methods Using the Partitioning and Conversion operators Explain the usage of the new Linq Assemblies Enabling Linq to Objects for .Net Framework 2.0
Introducing LINQ Project Linq is a set of language extensions that enable the query operations over the data. Linq relies on the C# 3.0 Language Enhancements . Linq Building Blocks: Object Initializers Lambda Expressions Extension Methods Anonymous types Implicit Typing Variables LINQ Project Overview
LINQ Assemblies The following describes the new assemblies and its use: System.Core.dll: Extension Methods for IEnumerable<T> . System.Data.DataExtensions.dll: Providing LINQ for DataSet. System.Data.Linq.dll: LINQ implementation for SQL Server. System.Xml.Linq.dll: LINQ Implementation for XML LINQ Assemblies
LINQ Query Expressions What is Query? What is Query Operators? How to Write Query Expressions? IEnumerable<T> and Query Results What is Deferred Execution? What is Immediate Execution? LINQ Query Expressions
Lab 1:  Writing Query Expressions Writing Linq Query Expression. Using Query Operators. Using var and IEnumerable<T> query varaiables. Querying In-Memory Collections.
Standard Query Operators The System.Linq namespace contains different Linq Extensions under the System.Linq.Enumerable class. Commonly Used Operators: OrderByDescending OrderBy Take Sum Distinct Count First Standard Query Operators Overview
Lab 2:  Using Initializers Writing Queries using Linq Extension Methods. Sorting the elements using the OrderByDescending extension method. Returning specific elements using Take and First methods. Calculating the total number of elements using the Count method. Returning Distinct values from a sequence of values.
Conversion Operators The conversion operator enable the conversion of query results into different collection types. The query conversion operators: ToArray ToList ToDictionary OfType Conversion Operators  Overview
Lab 3:  Using Conversion Operators Enforce the immediate execution of the queries. Converting the query results to Different Collection Types. Filtering the query results based on a specific data type.
Partitioning Operators Linq extension methods set contain a group of operators that allows the programmer to partitioning the results of the query into a specific sequence. The query partitioning operators: Take Skip TakeWhile SkipWhile Partitioning Operators  Overview
Lab 4:  Using Partitioning Operators Use the partitioning query operators. Skipping elements based on conditional expression. Retrieving elements using Take and TakeWhile operators.
LINQ Bridge LINQ Implemented for .NET 3.5, which requires the client to install .NET Framework 3.5. LINQBridge is an open project contains a reimplementation for all standard query operators  LINQBridge utilize the Csharp 3.0 Compiler new features to enable LINQ for .NET 2.0 Applications. LINQBridge can be used in Visual Studio 2008 for writing LINQ to Objects expressions. LINQBridge can be used in Visual Studio 2005 using the extension methods style.  LINQ Bridge  Overview
Lab 5:  Using LINQ for .NET Framework 2.0 Writing Linq-Enabled Applications for .NET Framework 2.0. Using the LinqBridge Extension in Visual Studio 2008. Writing Linq to Objects expressions.
Review In this module, you learned to: Writing Query Expressions Writing Queries using extension methods directly Using different query operators Enabling Linq to Objects into .NET Framework 2.0 Applications

More Related Content

PPT
PPTX
Linq
PPTX
Linq to sql
KEY
Introducing LINQ
PPT
Understanding linq
PPTX
LINQ in C#
PPT
Introduction Of Linq , ASP.NET Training Ahmedabad, ASP.NET Course Ahmedabad
Linq
Linq to sql
Introducing LINQ
Understanding linq
LINQ in C#
Introduction Of Linq , ASP.NET Training Ahmedabad, ASP.NET Course Ahmedabad

What's hot (20)

PPT
Language Integrated Query - LINQ
PPT
Linq in C# 3.0: An Overview
PPTX
Link quries
PPTX
Linq to sql
PPTX
Understanding LINQ in C#
PDF
Intake 37 linq2
PPTX
C# advanced topics and future - C#5
PDF
Intake 37 linq3
PDF
Apollo Server III
PDF
Intake 37 linq1
PDF
Apollo Server IV
PDF
Apollo Server
DOCX
Differences between method overloading and method overriding
PDF
Intake 37 ef2
PDF
Apollo server II
PDF
Java 8 - Project Lambda
PPTX
2CPP08 - Overloading and Overriding
PPTX
Eclipse Day India 2015 - Java 8 Overview
PPTX
Introduction to RxJava on Android
Language Integrated Query - LINQ
Linq in C# 3.0: An Overview
Link quries
Linq to sql
Understanding LINQ in C#
Intake 37 linq2
C# advanced topics and future - C#5
Intake 37 linq3
Apollo Server III
Intake 37 linq1
Apollo Server IV
Apollo Server
Differences between method overloading and method overriding
Intake 37 ef2
Apollo server II
Java 8 - Project Lambda
2CPP08 - Overloading and Overriding
Eclipse Day India 2015 - Java 8 Overview
Introduction to RxJava on Android
Ad

Similar to Module 3: Introduction to LINQ (PowerPoint Slides) (20)

PDF
Module 3: Introduction to LINQ (Material)
PPTX
LINQ.pptx
PPTX
Think in linq
PDF
New c sharp3_features_(linq)_part_iv
PPTX
SQL ttrain wrwrwrw wwrw wwrrrwrwrwrwwrwr.pptx
PDF
Intake 38 data access 3
PDF
Beginning linq
PPTX
LINQ PPT.pptx
DOCX
Linq in C#
PPTX
Asp.net c# mvc Training-Day-5 of Day-9
PDF
Litwin linq
PDF
New c sharp3_features_(linq)_part_v
PDF
Linq Pocket Reference Pocket Reference Oreilly 1st Edition Joseph Albahari
ODP
New c sharp3_features_(linq)_part_iv
PPT
C#3.0 & Vb 9.0 New Features
PPTX
LINQ/PLINQ
PPTX
Linq to xml
PPT
Linq
PPTX
ORM - Ivan Marković
PPT
Module 3: Introduction to LINQ (Material)
LINQ.pptx
Think in linq
New c sharp3_features_(linq)_part_iv
SQL ttrain wrwrwrw wwrw wwrrrwrwrwrwwrwr.pptx
Intake 38 data access 3
Beginning linq
LINQ PPT.pptx
Linq in C#
Asp.net c# mvc Training-Day-5 of Day-9
Litwin linq
New c sharp3_features_(linq)_part_v
Linq Pocket Reference Pocket Reference Oreilly 1st Edition Joseph Albahari
New c sharp3_features_(linq)_part_iv
C#3.0 & Vb 9.0 New Features
LINQ/PLINQ
Linq to xml
Linq
ORM - Ivan Marković
Ad

More from Mohamed Saleh (6)

PPTX
Module 2: C# 3.0 Language Enhancements (Slides)
PPT
Module 4: Introduction to ASP.NET 3.5 (PowerPoint Slides)
PDF
Module 4: Introduction to ASP.NET 3.5 (Material)
PDF
Module 2: C# 3.0 Language Enhancements (Material)
PDF
Module 1: Introduction to .NET Framework 3.5 (Material)
PPT
Module 1: Introduction to .NET Framework 3.5 (Slides)
Module 2: C# 3.0 Language Enhancements (Slides)
Module 4: Introduction to ASP.NET 3.5 (PowerPoint Slides)
Module 4: Introduction to ASP.NET 3.5 (Material)
Module 2: C# 3.0 Language Enhancements (Material)
Module 1: Introduction to .NET Framework 3.5 (Material)
Module 1: Introduction to .NET Framework 3.5 (Slides)

Recently uploaded (20)

PPT
Teaching material agriculture food technology
PDF
cuic standard and advanced reporting.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
A Presentation on Artificial Intelligence
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
Cloud computing and distributed systems.
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
A comparative analysis of optical character recognition models for extracting...
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
Teaching material agriculture food technology
cuic standard and advanced reporting.pdf
Network Security Unit 5.pdf for BCA BBA.
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
A Presentation on Artificial Intelligence
MIND Revenue Release Quarter 2 2025 Press Release
sap open course for s4hana steps from ECC to s4
Cloud computing and distributed systems.
Spectral efficient network and resource selection model in 5G networks
Encapsulation_ Review paper, used for researhc scholars
Advanced methodologies resolving dimensionality complications for autism neur...
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Programs and apps: productivity, graphics, security and other tools
20250228 LYD VKU AI Blended-Learning.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
A comparative analysis of optical character recognition models for extracting...
The AUB Centre for AI in Media Proposal.docx
Chapter 3 Spatial Domain Image Processing.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm

Module 3: Introduction to LINQ (PowerPoint Slides)

  • 1. Visual Studio 2008 Training 3.5 RTM Mohamed Saleh [email_address] www.jordev.net www.geeksconnected.com/mohamed
  • 2. Module 3: Introduction To Linq
  • 3. Overview What is Linq Understand the Query Expressions and Query Operators Writing queries using extension methods Using the Partitioning and Conversion operators Explain the usage of the new Linq Assemblies Enabling Linq to Objects for .Net Framework 2.0
  • 4. Introducing LINQ Project Linq is a set of language extensions that enable the query operations over the data. Linq relies on the C# 3.0 Language Enhancements . Linq Building Blocks: Object Initializers Lambda Expressions Extension Methods Anonymous types Implicit Typing Variables LINQ Project Overview
  • 5. LINQ Assemblies The following describes the new assemblies and its use: System.Core.dll: Extension Methods for IEnumerable<T> . System.Data.DataExtensions.dll: Providing LINQ for DataSet. System.Data.Linq.dll: LINQ implementation for SQL Server. System.Xml.Linq.dll: LINQ Implementation for XML LINQ Assemblies
  • 6. LINQ Query Expressions What is Query? What is Query Operators? How to Write Query Expressions? IEnumerable<T> and Query Results What is Deferred Execution? What is Immediate Execution? LINQ Query Expressions
  • 7. Lab 1: Writing Query Expressions Writing Linq Query Expression. Using Query Operators. Using var and IEnumerable<T> query varaiables. Querying In-Memory Collections.
  • 8. Standard Query Operators The System.Linq namespace contains different Linq Extensions under the System.Linq.Enumerable class. Commonly Used Operators: OrderByDescending OrderBy Take Sum Distinct Count First Standard Query Operators Overview
  • 9. Lab 2: Using Initializers Writing Queries using Linq Extension Methods. Sorting the elements using the OrderByDescending extension method. Returning specific elements using Take and First methods. Calculating the total number of elements using the Count method. Returning Distinct values from a sequence of values.
  • 10. Conversion Operators The conversion operator enable the conversion of query results into different collection types. The query conversion operators: ToArray ToList ToDictionary OfType Conversion Operators Overview
  • 11. Lab 3: Using Conversion Operators Enforce the immediate execution of the queries. Converting the query results to Different Collection Types. Filtering the query results based on a specific data type.
  • 12. Partitioning Operators Linq extension methods set contain a group of operators that allows the programmer to partitioning the results of the query into a specific sequence. The query partitioning operators: Take Skip TakeWhile SkipWhile Partitioning Operators Overview
  • 13. Lab 4: Using Partitioning Operators Use the partitioning query operators. Skipping elements based on conditional expression. Retrieving elements using Take and TakeWhile operators.
  • 14. LINQ Bridge LINQ Implemented for .NET 3.5, which requires the client to install .NET Framework 3.5. LINQBridge is an open project contains a reimplementation for all standard query operators LINQBridge utilize the Csharp 3.0 Compiler new features to enable LINQ for .NET 2.0 Applications. LINQBridge can be used in Visual Studio 2008 for writing LINQ to Objects expressions. LINQBridge can be used in Visual Studio 2005 using the extension methods style. LINQ Bridge Overview
  • 15. Lab 5: Using LINQ for .NET Framework 2.0 Writing Linq-Enabled Applications for .NET Framework 2.0. Using the LinqBridge Extension in Visual Studio 2008. Writing Linq to Objects expressions.
  • 16. Review In this module, you learned to: Writing Query Expressions Writing Queries using extension methods directly Using different query operators Enabling Linq to Objects into .NET Framework 2.0 Applications