Explain in small words why IQueryable <T> is required

Here is this page ... MSDN, IQueryable (Of T) Interface . Can you do a better job explaining why we need a marker interface that does not add any methods to IEnumerable?

+3
source share
4 answers

It expands IEnumerable, IQueryableand IEnumerable<T>. It may not have its own methods, but it combines these three other interfaces as one, so you do not have to deal with them separately.

+3
source

IQueryable<T> IQueryable. IQueryable, . ( IQueryable IEnumerable<T> IEnumerable, .)

, IQueryable LINQ to SQL ( ..), Where .. . LINQ Queryable, Enumerable, . ( , , , - . , , , , . )

+12

IQueryable<T> , , LINQ. , IQueryable<T>, , .

, LINQ , .

+5

IQueryable, linq (System.Linq). LINQ (SQL Linq To SQL. - Linq to Google, :

var searchResult = from result 
                   in Google.Repository 
                   where result.Equals("i love linq") 
                   select result;

URL:

http://www.google.com/search?hl=en&q=i+love+linq&aq=f&oq=&aqi=g10

, .

0
source

Source: https://habr.com/ru/post/1711279/


All Articles