0% found this document useful (0 votes)
69 views2 pages

Advantages of LINQ

LINQ stands for Language Integrated Query and provides querying capabilities to .NET languages with a SQL-like syntax. LINQ allows querying of data from various sources like collections, databases, and XML files. Microsoft divides LINQ into different areas including LINQ to Objects for in-memory data, LINQ to SQL for relational databases, and LINQ to XML for querying XML. The goal of LINQ is to add general purpose querying to .NET that can be used across different data sources.

Uploaded by

Pratik Gandhi
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
0% found this document useful (0 votes)
69 views2 pages

Advantages of LINQ

LINQ stands for Language Integrated Query and provides querying capabilities to .NET languages with a SQL-like syntax. LINQ allows querying of data from various sources like collections, databases, and XML files. Microsoft divides LINQ into different areas including LINQ to Objects for in-memory data, LINQ to SQL for relational databases, and LINQ to XML for querying XML. The goal of LINQ is to add general purpose querying to .NET that can be used across different data sources.

Uploaded by

Pratik Gandhi
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 2

LINQ

LINQ stands for Language Integrated Query. LINQ is a data querying methodology which provides querying capabilities to .NET languages with a syntax similar to a SQL query LINQ has a great power of querying on any source of data. The data source could be collections of objects, database or XML files. We can easily retrieve data from any object that implements the IEnumerable<T> interface. Microsoft basically divides LINQ into three areas and that are give below. The official goal of the LINQ family of technologies is to add "general purpose query facilities to the .NET Framework that apply to all sources of information, not just relational or XML data".

Advantages of LINQ 1. LINQ offers an object-based, language-integrated way to query over data no matter where that data came from. So through LINQ we can query database, XML as well as collections. 2. Compile time syntax checking 3. It allows you to query collections like arrays, enumerable classes etc in the native language of your application, like VB or C# in much the same way as you would query a database using SQL

LINQ to Object {Queries performed against the in-memory data} LINQ to ADO.NET

LINQ to SQL (DLinq) {Queries performed against the relation database only Microsoft SQL Server Supported} LINQ to DataSet {Supports queries by using ADO.NET data sets and data tables} LINQ to Entities

LINQ to XML (XLinq) { Queries performed against the XML source} LINQ to Objects deals with in-memory data. Any class that implements the IEnumerable<T> interface (in the System.Collections.Generic namespace) can be queried with SQO. LINQ to ADO.NET deals with data from external sources, basically anything ADO.NET can connect to. Any class that implements IEnumerable<T> or IQueryable<T> (in the System.Query namespace) can be queried with SQO.

You might also like