5
Answers

Linq Help

David Smith

David Smith

12y
1.2k
1
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)