Frage

I am a little confused , what are the projection operations in Linq queries? When does a Select operation in a Linq query become a Projection Operation? Can someone please enlighten me?

War es hilfreich?

Lösung

When the select clause produces something other than a copy of the source element, the operation is called a projection.

something like this is called a projection operation

var innerJoinQuery =
    from cust in customers
    join dist in distributors on cust.City equals dist.City
    select new { CustomerName = cust.Name, DistributorName = dist.Name };
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top