Entity framework–update Model from Database, part 2

Source: Internet
Author: User

The Update model from database is an important improvement feature of the EDM designer, supporting the addition of new database tables and columns, which allows the Model to correctly handle the renaming of types and properties, and to detect inheritance and mapping changes. Here, we briefly describe the use of this feature and its limitations.

Down again to update model, this time adding 2 of these new tables. Model related part of the update is as follows:

Now we copy the attributes from the suppliercontract to the suppliers type and delete the suppliercontracts type. Next to the table mapping view of the Suppliers type, click <add a table or view> unit and select suppliercontracts and map suppliers type to suppliercontracts table. The mapping view is shown in the following illustration:

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.