Use of LINQ
Every application needs to work with data.Whether it is a small application or enterprise application ,all the application needs to store details such as the users,data to display,data related to problem domain.
Most of the languages provides different ways to manage the different types of data.For example in C# you can retrieve and update data from different sources:
- Databases such as SQL Server,Oracle
- XML files
- Text Files
- JSON data
.NET provides different technologies for working with these different data sources.For example for working with databases you can write SQL queries and execute them using ADO.NET.For XML data you can using XML APIs such as XPath.Though these different APIs makes working with different data sources convient ,it has one big disadvantage.We need to learn different APIs to work with these different data sources.
This is problem is solved by LINQ.LINQ stands for Lnaguage Integrated Query and allows us to use the same language syntax to query different data sources.
Leave a Reply