Good day everyone,
a property or a field name of a table is being stored in another table field [I know bad database design practice], so what I'm trying to do is converting the string into a variable using GetType().GetProperty("some string goes here")
technique in the select statement like this Select(m => m.GetType().GetProperty(x.data))
, though, everytime I try to execute the statement an error is thrown:
Argument type 'System.Collections.Generic.List`1[System.Reflection.PropertyInfo]' does not match the corresponding member type 'System.Linq.IQueryable`1[System.Reflection.PropertyInfo]' (Parameter 'arguments[3]')