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

Anil Singh is an author, tech blogger, and software programmer. Book writing, tech blogging is something do extra and Anil love doing it. For more detail, kindly refer to this link..
My Blogs - https://code-sample.com and https://code-sample.xyz
My Book1 - BEST SELLING ANGULAR BOOK (INCLUDING ALL VERSIONS 2, 4, 5, 6, 7)
My Book2 - ANGULAR 2 INTERVIEW QUESTIONS BOOK - Both Books are Available on WorldWide.

www.code-sample.com/. Powered by Blogger.