Update the. edmx file (msdn) when the database changes)

Source: Internet
Author: User
  1. In"Model Browser"Right-click the. edmx file and select"Update model from database".

    The model Update Wizard starts. If no database connection is specified"Select database connection"Dialog box. Otherwise"Select database object"Dialog box.

  2. If select database connection dialog box, specify a database connection. related to specified connections, see the "select your data connection" dialog box (Object Data Model Wizard ).

  3. click Add tab.

    For more information, see: delete objects from the storage model (Object Data Model Tool ).

  4. Expand"Table","View"And"Stored Procedure"Node and check the objects to be added to the. edmx file.

  5. Click"Refresh"Tab.

    Displays the corresponding nodes of tables, views, and stored procedures in the existing storage model. Any changes made to these database objects will be reflected in the updated storage model. When a column is added to a table or view, the conceptual model is changed.

  6. Click"Delete"Tab.

    Nodes about tables, views, and stored procedures appear. If you have deleted an object from the database and the object was included in the previous storage model, you can expand the corresponding node. Objects in these nodes will be deleted from the updated model.

  7. Click"Done"To use the database to change the update. edmx file.

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.