What are different Query Operators in Linq?

What are different Query Operators in Linq?

Different Query Operators in Linq?

A set of extension methods forming a query pattern is known as, LINQ Standard Query Operators.

The select clause or the Select method projects each element of a sequence into a new form. It selects, projects and transforms elements in a collection.

LINQ standard query operators are: - 

Used to restrict the result set such that it has only selected elements satisfying a particular condition.

Used to Join 2 ore multiple result sets.

Used to project / transform an object into an altogether new form with only specific or selective properties.

Used to order the elements of a sequence or result set on basis of a single or more attributes.

Used to group data based on a common shared attribute.

Used to change the type of input objects.

Used to Performs concatenation of two sequences. This is quite similar to the Union operator except, this does not remove duplicates.

Used to Performs any type of desired or custom aggregation

Used to check a specific condition. These operators return a Boolean value i.e. True or False when some or all elements within a sequence satisfy a specific condition.

Used to divide an input sequence into two separate sections without rearranging the elements of the sequence and then returning one of them.

Creates a new sequence of values.

Yield result set based on different criteria.

Used to Compares two sets and determine are they an exact match or not.

Except the DefaultIfEmpty, all the rest eight standard query element operators return a single element from a collection.

Deepak Talwar

Deepak Talwar

Principal Software Engineer and Full Stack Developer with 12+ years of Professional Experience in Microsoft Technologies. Hands on experience with C#, ASP.NET, ASP.NET MVC, ASP.NET Core, WebAPI, Linq, Entity Framework, MS-SQL, NoSql, Javascript, Angular, jQuery, AWS, Azure, ReactJs, AngularJs, Laravel, Codeingiter, Serenity. VBA, Software Architecture, Web Design and Development.

Related Post

About Us

Community of IT Professionals

A Complete IT knowledgebase for any kind of Software Language, Development, Programming, Coding, Designing, Networking, Hardware and Digital Marketing.