You want to the source code in C# to create a linq query that compiles to SELECT NAME FROM PERSON
under Linq to SQL or Linq to Entity Framework?
IEnumerable<string> names = from x in context.PERSONS
select x.Name;
OR
IEnumerable<string> names = context.PERSONS.Select(x => x.Name);
In Monad parlance you want a projection onto the Name property.
EDIT : You want to dynamically state which column?
string columnName = "Name";
ParameterExpression personExpression = Expression.Parameter(typeof(Person), "p");
Expression<Func<Person, string>> column = Expression.Lambda<Func<Person, string>>(Expression.PropertyOrField(personExpression, columnName), personExpression);
IEnumerable<string> things = context.PERSONS.Select(column);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…