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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rahul SinghPosted Jan 14, 2015, 11:48 PM
You can mark it as answer, if that helped :)
Randhir kumarPosted Jan 14, 2015, 11:46 PM
Your answer is very helpful for me.so i am very thankful for this.
with best regards
Randhir kumar
Rahul SinghPosted Jan 12, 2015, 12:46 AM
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
Michal HabalcikPosted Jan 10, 2015, 2:31 AM
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 KumarPosted Jan 10, 2015, 2:10 AM
See links :-
http://msdn.microsoft.com/en-us/library/bb397933.aspx
http://codesamplez.com/linq-tutorials
http://www.c-sharpcorner.com/1/180/