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

Programming, error messages and sample code > ASP.NET
When you get error

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

Please check:

1. Make sure you have ''xxxxxxx" table in your datgbase

2. Make sure you have the Primary Key in that table

3. If the the table and Primary Key are existing, please updated the Entity map and publish again.