ASP. NET Website permission design implementation (1) -- use powerdesigner for Database Design

Source: Internet
Author: User

Here we use powerdesigner for a preliminary design, which may be modified later.

1. Start powerdesigner to create a physical data model.

 

 

 

2. Toolbar

 

3. Create a table model

 

4. Add the first table. You can double-click the table or right-click the table to open the following window.

 

Don't forget to select DBO as the owner and switch to the columns tab.

 

After that, the table looks like this kind of virtue.

 

Follow these steps to add other tables

6. Add a table relationship, select the Toolbox's link tool, drag the table from the table to the master table, and double-click the link to display the right window

 

 

7. Configure database connection

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

8. Create a database and generate tables in the database. Here, I first created a database in SQL Server Management studio, and then

 

 

 

 

 

Because the database has been generated and the DBO architecture exists, you can remove the check box and keep the default values for the rest. Note that if a table already exists in the Database and you want to keep the data, you have to choose from options, and the "selection" is also

 

 

 

 

 

 

Directly [run], you can see the generated table in the database.

 

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.