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!