LINQ Advantages and Disadvantages in .Net

What is LINQ API?

In the LINQ, the collections of the extension methods for the classes that implements IQueryable<T> and IEnumerable<T> interface.

The Enumerable class includes extension methods for the class that implement IEnumerable<T> interface.
The IQueryable class includes extension methods for the class that implement IQueryable<T> interface.

The IQueryable interface inherits from IEnumerable interface, so whatever IEnumerable can do, IQueryable can also do.

IQueryable<T> and IEnumerable<T> interfaces are used for data manipulation in LINQ from the database and collections.

Points to Remembers :-
We are using the namespace “System.Linq” to access LINQ and it is included by default in the added class.

The LINQ API includes two important static classes Queryable and Enumerable and the Queryable and Enumerable class includes extension methods that implements interface i.e.
·         IEnumerable<T> Interface
·         IQueryable<T> Interface

I hope it is helpful to you! Thank you!


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 - and
My Books - Interview Questions and Answers Books- Get Your Book in 15+ Digital Stores Worldwide..

You Might Also Like Powered by Blogger.
ASK Questions