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

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 Tech Blog - https://www.code-sample.com/
My Books - Book 1 and Book 2

What is LINQ API? What is LINQ API? Reviewed by Anil Singh on 2:56 AM Rating: (5)
www.code-sample.com/. Powered by Blogger.
^