You need to use reflection for this. If you are trying to filter by a dynamicly selected column, you can try something like this:
string propertyName
string keyword
ParameterExpression parameter = Expression.Parameter(typeof(YourType), "x");
Expression property = Expression.Property(parameter, propertyName);
Expression target = Expression.Constant(keyword);
Expression containsMethod = Expression.Call(property, "Contains", null, target);
Expression<Func<YourType, bool>> lambda =
Expression.Lambda<Func<YourType, bool>>(containsMethod, parameter);
var companies = repository.AsQueryable().Where(lambda);
I what you are trying to do is selecting a particular column, then you can use the same principle for generating the lamba expression and using it in the select (minus the condition)
var companies = repository.AsQueryable().Where(whatever).Select(lambda);