If you get this Error with Entity Framework:

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

Just check that the table have a PrimaryKey assigned…
And do not forget to update your datamodel after adding the key.Winking smile