2016.5.12 using PowerDesigner to do database reverse engineering and generate entity class

Source: Internet
Author: User
Tags powerdesigner

I. Creating a database Physical model

1. First open the powerdesigner-file-Reverse engineering-database

2, select the database version in the pop-up window, up to 10g selection, determine

3. Create a data source

4. Click Setup ... Set up a data source

5. Fill in the database instance name

6, fill in the user name, password click Connect

7. After successful connection, the physical model can be generated.

Second, generate the entity class

1, tools→generate object-oriented Model,

2. Pop-up box General page Select the Model Language C#,detail page, make sure to cancel the check model, otherwise the generation will be faulted. Selection page Select the table for which you want to do the entity class to make all selections. After the application is determined, the object model of the table you just selected can be generated in the left directory.

3. Export the entity Class C # file:

First Language→edit current Object language configuration template

C # profile\attribute\templates\definition, add {get; set;} at the diagram location

4, Language→generate C # 2 Code Select the export location, cancel the Checkmode and WSDL selection, you can export C # class file for each table.

2016.5.12 using PowerDesigner to do database reverse engineering and generate entity class

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.