Hi all I am trying to do a very simple dynamic query which will select a column dynamically i.e. selection of column would depend upon another query.So, I would select col X if condition 1 and Y if condition 2.
So I tried using query.Select(colname) using the extension method also tried using Func<> but I am not sure how to go about doing this. I have read about dynamic extension for linq and also reflection but with reflection to the GetValue function does not return value for my column in database. Please help me out I am just trying to select a column dynamically at runtime and no conditions really on it.