using System.Reflection; ... BindingFlags b = BindingFlags.Instance | BindingFlags.Public var myProps = typeof(CSVTest).GetProperties(b) foreach (CSVTest tst in _CSVTests) { foreach(var p in myProps ) { object x = p.GetGetMethod().Invoke(tst, null); //Do stuff with x and p.Name } }>I don't think you can iterate through the columns like you want using LINQ. If you want to do that you'll need to use datasets.
>> >>var _CSVTests = from cs in db.CSVTests >> select cs; >> >>foreach (CSVTest tst in _CSVTests) >>{ >> foreach (Column c in tst) >> { >> Do something with the value of each column if it isn't null. >> } >>} >> >>>>