Error inserting a new row/entity using EF4.x

Tuesday, 20 December 2011 11:04 by Chad

Error

Unable to update the EntitySet 'User' because it has a DefiningQuery and no <InsertFunction> element exists in the <ModificationFunctionMapping> element to support the current operation.

Solution

Make sure your table has a primary key!