hi
iam new to Linq so please any one explain about Linq with some easy examples
thank you
Introduction to Linq
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
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
chirag pandya30 reputationPosted Mar 13, 2012, 2:45 AM EDT
http://www.codeproject.com/Articles/26657/Simple-LINQ-to-SQL-in-C
VulpesRank #55 · 29.2K reputationPosted Mar 13, 2012, 2:53 AM EDT
SenthilkumarRank #387 · 6.5K reputationPosted Mar 13, 2012, 3:01 AM EDT
The developers can write the query to retrieve the from the objects/xml/sql and no need to write the logic to iterate or do it in the back end.
- LINQ to object
- LINQ to XML
- LINQ to SQL
For example in an array you are having lot of elements. but you want to filter the data on some criteria. Then it has to be looped in order to get the results.
For overcoming this kind of work microsoft allows you to write the query to retrieve from the array and you can mention the condition in the where clause.
You can get more idea in the following link.
http://msdn.microsoft.com/en-us/library/bb308959.aspx
If you found this post is helpful then mark it as "Accepted Answer"