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. } }I know the "foreach (Column c in tst) " part is not proper. What is?
>var _CSVTexts = from cs in db.CSVTests > select cs; > >foreach (var tst in _CSVTests >{ > Console.WriteLine(tst.Column1); >} >>
>>var _CSVTests = from cs in db.CSVTests >> select cs; >> >>foreach (CSVTest tst in _CSVTests) >> { >> >> In here I want to iterate over each column in each record and >> if it is not equal to NULL I want to do something with the value, >> such as insert that value into another table. >> >> } >>>>