How to insert 5 records at a time in a table with composite primary key using LINQ to sql RRS feed

  • Question

  • I have a problem while inserting data using linq t osql

    I have 2 objects - 1 object is table2(requestid, name) with primary key - say its requestid. Another table2(requestid, equipmake,equipname) requestid in table2 referential to table1. I want to add 5 rows of equipments from front end for the same requestid. But with foreach iterator of table2 object - able to insert only the last record and that too if i set requestid of table2 as primary key. So how can i insert > 1 records with a table2 object.

    Can anyone help in this regard.
    Thursday, August 20, 2009 11:48 PM


All replies