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