User code not processed updateexception

Source: Internet
Author: User

Unable to update EntitySet "Project_project" because it has a definingquery, and the <ModificationFunctionMapping> element does not support the current operation < The insertfunction> element.

Baffled by its explanations, and finally found
1: The table in the entity must have a primary key (this indicates that the primary key must be in the T_user table), and if not, there will be a hint
2: After the primary key is set up, run or there will be similar problems, it is a depressed
1): The method first removes the model from the EF that has just set the primary key, and then adds it back to EF, that's Ok.
2): If the method is not successful, then use this more soil method: Innovation to create a project, and then re-associate EF, this problem will solve or delete the *.edmx file, and then re-associate the database is OK all tested, completely through

User code not processed updateexception

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.