full error is:
Unable to update the EntitySet 'table1' because it has a DefiningQuery and no <InsertFunction> element exists in the <ModificationFunctionMapping> element to support the current operation
From looking around, it seems this error is caused by a lack of a primary key on table1. I have checked my .edmx file and the table in SQL server and both show that a primary key is specified. What else should I be looking at?