I have this query:
(from mt in edmxObject.MyTable
where mt.Field1 != null
select mt.Field6)
.Distinct()
.ToList())
There are also field Field2, Field3, Filed4 and Field5 which a same in nature. They hold an integer number, but they can also be nullable.
I want to get whether some of the fields Field1, Field2, ..., Field5 has a value or they have a null value.
If I know the name of the column as a string like "FieldX" which is in the set (Field1, Field2, ..., Field5) how can I get a Linq query at runtime with the appropriate column and then execute it on my edmx model to get the value of the given field?