hi
iam new to Linq so please any one explain about Linq with some easy examples
thank you
Loading
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.
SenthilkumarPosted Mar 13, 2012, 7:01 AM
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"
VulpesPosted Mar 13, 2012, 6:53 AM
chirag pandyaPosted Mar 13, 2012, 6:45 AM
http://www.codeproject.com/Articles/26657/Simple-LINQ-to-SQL-in-C