distinct values from a list using LINQ

What is LINQ? Why LINQ?


  1. LINQ is stands for Language Integrated Query.
  2. LINQ is a Microsoft .NET Framework component and use for data querying.
  3. LINQ was released in Microsoft .NET Framework 3.5 on November 19, 2007.
  4. LINQ also defines a set of method names that is called standard query operators.
  5. LINQ a library for collection and iterator manipulation that makes extensive use of higher-order functions as arguments using  System.Linq.
  6. LINQ allows us to write queries directly in our database and these queries can be on relational databases, XML documents, objects, arrays and third-party data sources.
  7. LINQ also defines a new LINQ provider model that can take an expression tree and use it to run native queries against a data source outside of the CLR i.e. LINQ to SQL, LINQ to XML etc.
  8. LINQ is query syntax, not a language or an O/RM. You can build an O/RM on top of the syntax provided by LINQ.
  9. LINQ is kinds of universal query language.

We can use LINQ queries in two ways,
1.      Query Syntax
2.      Methods Syntax
Most of the times we are using a combination of both.

LINQ makes our code cleaner, readable, reusable, maintainable and IntelliSense Support.
ANIL SINGH

Hey! I'm Anil Singh. I author this blog. I'm Active Blogger, Programmer. I love learning new technologies, programming, blogging and participating the forum discussions more...
My Blogs - http://www.code-sample.com and http://www.code-sample.xyz
My Books - Google Amazon and Flipkart Book Store!

You Might Also Like
Post a Comment
www.code-sample.com/. Powered by Blogger.
ASK Questions
SQL Server NodeJs TypeScript JavaScript Angular SQL Server My Book