LINQ - SPLessons
SPLessons 5 Steps, 3 Clicks
5 Steps - 3 Clicks

LINQ Operators

LINQ Operators

 

shape Introduction

This chapter demonstrates about the LINQ Operators. LINQ Standard Query Operators is defined as the set of extension formed a query. Following are the concepts covered in this chapter.
  • Different Types of Operators

Different Types of Operators

shape Description

LINQ Operators are have the some range of capabilities like sorting, filtering, aggregation, projection etc and operators are categorised into different types some operators are listed below.

Join Operators

shape Description

Join is a keyword which is used to link two or more collections based on some conditions. Here some Join operators are listed below
  • Cross Join
  • Cross Join with Group Join
  • Group Join
  • Left Outer Join

Filtering Operators

shape Description

Filtering operators are used to restrict the result set and which have some selected statements to satisfy the condition. Some filtering operators are listed below
  • Where
  • ofType

Grouping Operators

shape Description

Grouping operators are used to gather some data into the groups which is based some commonly shared attributes. Some grouping operators are listed below.
  • groupBy
  • ToLookup

Sorting Operators

shape Description

Sorting operators are used to arrange the elements in a order based on basis of a attributes. Following are the some sorting operators are listed below.
  • OrderBy
  • ThenBy
  • Reverse
  • OrderByDescending
  • ThenByDescending

Aggregation Operators

shape Description

Aggregation operators are used to crate aggregation LINQ by using desired type of aggregation. Following are the some aggregate operators are shown below.
  • Min
  • Max
  • Count
  • Sum
  • Aggergate

Projection Operators

shape Description

Projection is used to transform the object into altogether new form. Following are the some projection operators are listed below.
  • Select
  • SelectMany

Set Operations

shape Description

Set operations consist of four operations each operate produce a result based on different criteria. Following are the 4 set operations are listed below.
  • Except
  • Union
  • Distinct
  • Intersect

Quantifier Operators

shape Description

Which is used to produce the Boolean values if sequence satisfy the specific condition. Following are the some quantifier operators are listed below.
  • Any
  • All
  • Contain

Summary

shape Points

  • LINQ consist of the several types of operators.
  • operators are categorised based on their functionality.
  • Each operator produce different results.