What is LINQ

The descriptor LINQ is for Language Integrated question. Microsoft’s command language is totally integrated and offers simple information access from in-memory objects, databases, XML documents and plenty of additional. it’s through a collection of extensions, LINQ with competence integrate queries in C# and Visual Basic.

The tutorial offers an entire insight into LINQ with ample examples and secret writing. the whole tutorial is split into numerous topics with subtopics that a beginner is ready to move step by step to additional complicated topics of LINQ.
The aim of this tutorial is to supply a simple understanding of LINQ to the beginners UN agency area unit keen to find out an equivalent.
It is essential before continuing to possess some basic information of C# and Visual Basic in .NET.

Developers across the world have always encountered problems in querying data because of the lack of a defined path and need to master a multiple of technologies like SQL, Web Services, XQuery, etc.


using System;
using System.Linq;

class Program
  static void Main()
     string[] userNames= {"Pawan", "Diwakar", "LINQ", "Rohit", "Manoj"};
  	 //Get only Pawan User
	 var userName= from user in userNames
	                  where user=="Pawan"
	                  select user;
	 //Print each users
	 foreach (var user in userNames)

Types of LINQ

The types of LINQ are mentioned below in brief.

  • LINQ to Objects
  • LINQ to DataSet
  • LINQ to Entities

Leave a Reply

Your email address will not be published. Required fields are marked *