LINQ Partition Operators

In Linq, partition operators are used to dividing the collection/list into two parts. There are various partition operators like Take(), TakeWhile(), Skip(), SkipWhile(). All have its unique use and we can use it in our demand basis. Linq Take Operator It is used to get the specified number of elements from the list. It returns…

Read More

LINQ Sorting Operators

In Linq, sorting operators are used when we have to change the sequence or order of the data. i.e. Ascending sort or Descending sort. There are many sorting operators like OrderBy(), OrderByDescending(), ThenBy(), ThenByDescending() etc.Each has its unique use. Linq OrderBy operator It is used to order the data in ascending order and it is…

Read More

LINQ Where Clause Filtering Operator

Linq filtering operators are used to filter the collection or list. Filtering operator specifies the statement that should only take effect when the specified criteria meet. The where clause is optional and used to limit the number of data returned by the linq query. Linq Where Operator with Method Syntax Syntax: collection name.Where(x=>x.StartWith(“F”)) Example: using…

Read More

LINQ Projection Operators (Select, SelectMany)

The Linq projection operator is used to retrieve one or more from the tables. Its like select syntax of the standard SQL query. Select and Select many are two types of linq projection operators. Linq projection operators Select many Select Linq Select Operator The select operator is used to retrieving data from the list or…

Read More

LINQ Aggregate Function

Today, we will learn about Linq aggregate functions. Linq provides various aggregate functions like Min(), Max(), Sum(), Count(), Average(), Aggregate(). Linq Min() Function Here, we will learn about Min() function provided by Linq. As the name suggests, the Min() function gives the minimum value from the list or collection. Linq made it very easy to…

Read More

LINQ Lambda Expressions

In Linq, a function without a name is known as Lambda expression. It a more clear and makes the syntax small. As lambda expression is not must readable but internally its get converted to lambda only. Syntax of LINQ Lambda Expressions (parameter) => any expression Lambda expression is dynamic in nature and defines the type…

Read More