sir,
Please give briefly description of LINQ and why use of it.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Michal HabalcikRank #902 · 2.3K reputationPosted Jan 9, 2015, 9:31 PM EST
Language Integrated Query (LINQ) is a set of data querying features that was released as a major part of .Net Framework 3.5. While syntaxicaly very similar to SQL, LINQ provides powerful out-of-the-box query capabilities to C# and Visual Basic that allow querying and updating a large variety of data stores and structures. Natively, it provides assemblies that enable its use with collections, SQL databases, datasets and XML documents. The technology is easy to learn and can be extended to support potentially any kind of data store.
More on the following links:
WikiPedia - Language Integrated Query
MSDN - LINQ (Language-Integrated Query)
Jitendra KumarRank #760 · 3K reputationPosted Jan 9, 2015, 9:10 PM EST
See links :-
http://msdn.microsoft.com/en-us/library/bb397933.aspx
http://codesamplez.com/linq-tutorials
http://www.c-sharpcorner.com/1/180/
Rahul SinghRank #1,323 · 1.3K reputationPosted Jan 11, 2015, 7:46 PM EST
Language Integarted Query(LINQ) was introduced in C# 3.0 & .NET framework 3.5, the idea behind this was, suppose some day we are working on SQL server database so we need to learn SQL server syntax, Sql related ADO.NET objects. Now suppose after some time we switched to a Oracle database, so again we need to garb command on oracle related syntax & oracle related ADO.NET objects to work with C#, so basically this problem arises with the number of technologies we adapt, we need to learn all of them. So basically to avoid this, Microsoft introduced LINQ where we can not only work with collections populated from database, but with various other data sources as well like XML file, a in-memory datatable etc. We can even use LINQ when working with Reflections. In .Net any datasource which implements IEnumerable interface can be used for querying, filtering, grouping, ordering & projecting data.
We can use LINQ queries in two ways:-
1. Query Syntax
2. Methos Syntax
Many times we use a combination of both. Now, with the evolution of entity framework the imporatnce of LINQ has grown much much higher as compared to old times.
You can read about it on MSDN:-
http://msdn.microsoft.com/en-us/library/bb397676.aspx
Randhir kumarRank #9,921 · 201 reputationPosted Jan 14, 2015, 6:46 PM EST
Your answer is very helpful for me.so i am very thankful for this.
with best regards
Randhir kumar
Rahul SinghRank #1,323 · 1.3K reputationPosted Jan 14, 2015, 6:48 PM EST
You can mark it as answer, if that helped :)