does IQueryable<T> only get returned from the Linq to Sql or Linq to Entities classes? -


The book "Pro Lynn Cc # 2010" (Appreciation, Freeman and Ritz) is reading the author tells that IQueryable only Sql from Linq will return from the squares in the namespace, not in the normal Linux namespace. I was surprised at this because I thought the thing on which the end was supposed to be IQueryable. It turns out that I was wrong, where the extension of the IENMERMABLE is because the IQueryable & lt; T & gt; : IEnumerable & lt; T & gt; , where in any way do you

the author is correct?

I'm talking about framework classes, not any end-user-generated code. There are two sets of extension methods for LINQ - one set is contained in the class and in one set. IEnumerable & lt; T & gt; For things that work on for LINQ and

numeric and delegates use as logic. The queryable question is for the entity framework or from LINQ to SQL, which requires the query to be inspected and processed and therefore the IQueryable & lt; T & gt; instead of IEnumerable & lt; Use T & gt; .

In the case of both mentioned O / R mapper, they need to translate queries into SQL queries. It will not work with the representatives (unless analyzing the IL code or analyzing other insane material) and for this the extension methods are used as arguments instead of the representative in the curable .

Both the mentioned O / R Mapper (formerly ADO .NET Data Services) also have the IQueryable & lt; T & gt; () and translate queries in the form of expression trees in the URL.

/ html>

Comments