What is the difference between these two statements
The first returns the filtered sequence of the source / full source object; the second still executes the filter, but returns a sequence of an anonymous type with only these three properties.
Is there a performance issue in these statements
. LINQ-to-Objects, new {...} ( ) , . , LINQ-to-SQL .. ( ), . , , anon; () BLOB ( varchar) , , .
: , DTO:
return new CustomerDto { Company = c.Company, Entered = c.Entered, PK = c.pk};
...
public class CustomerDto { ... }