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!


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 - Buy Books Online at Best Prices

You Might Also Like
Post a Comment
www.code-sample.com/. Powered by Blogger.