David Smith

David Smith

  • NA
  • 2k
  • 0

Linq Help

Feb 13 2012 4:10 AM
I wanted to know how to write this in linq below. Basically for every row by id in the testTable find the related fk Id in the  Log table and insert the row in the LogTable , then set then assigned the Log table to grid.DataSource


  foreach (databaseDataSet.testRow testRow in testTable.Rows)
                {

                        foreach (databaseDataSet.logRow logRow in LogTable.Rows)
                        {
                            Import record into LogTable
                        }
                   
                }


               grid.DataSource = LogTable;

Answers (5)