get only selected columns from linq query code example
Example: c# linq select specific columns
return custQuery.Select(item => item.Name
).ToList();
return custQuery.Select(item => item.Name
).ToList();