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

solution:

  1. Edmx Right-click the file, select Open with (Open), XML editor (XML Editor)
  2. Find entities StorageModels element: in edmx
  3. Completely remove DefiningQuery
  4. Rename store:Schema="dbo"is Schema="dbo"(otherwise, the code generates an error, indicating name is invalid)

Guess you like

Origin www.cnblogs.com/xiewei123/p/11294465.html