I have IQueryable<> object.
I want to Convert it into List<> with selected columns like new { ID = s.ID, Name = s.Name }.
Edited
Marc you are absolutely right!
but I have only access to FindByAll() Method (because of my architecture).
And it gives me whole object in IQueryable<>
And I have strict requirement( for creating json object for select tag) to have only list<> type with two fields.
Then just
Select:(edit) Actually – the names could be inferred in this case, so you could use:
which saves a few electrons…