PowerDesigner table design time display comment column

1. Create a new model

Open PowerDesigner and click as shown in Create Model...the figure:
Insert image description here
Or click on the 文件menu bar 新建模型to create a new one, as shown in the figure:
Insert image description here
After the new creation, you will switch to the model type ( Model types) tab, select Physical Data Model(Physical Data Model), and then select Physical Diagram, as shown in the figure:
Insert image description here
After selecting, in Enter below 模型名称and 数据库类型click OKto create a new one.

2. Table design

After the model is created, click the table icon on the right and create the table in the left panel as follows. Double-click the table, find the tab, and Columnsadd column fields to the database table, as shown in the picture: As
Insert image description here
shown in the picture above, the created table has no Commentdescription by default. Field
Insert image description here
If we want to display Commentthe description field, we need to double-click the table, then enter Columnsthe options page, click Customize Columns and Filterthe button, and then check it Comment, as shown in the figure:
Insert image description here
Insert image description here
After we check Commentand save, we see it in Table Propertiesthe window Columnstab page Comment, As shown in the picture:
Insert image description here
However, after saving and returning to the design view, the Comment information is still not seen, which is very inconvenient for our design. At this time, we find the -> button
Insert image description here
in the toolbar , as shown in the picture: Create a new one in the opened dialog box, and then Click the button, as shown in the picture: Right click, click , as shown in the picture: Select , then click , as shown in the picture: Then select , right click and select -> , as shown in the picture: Name a name (such as AttributeComment), select String as dataType, select Computer, Read only Note: You cannot use Comment for the name because it is a built-in name. If you use it, you will be prompted to have a duplicate name, as shown in the figure: Switch to模型Extensions
Insert image description here
List of Extensions属性
Insert image description here
ProfileAdd Metaclasses
Insert image description here
ColumnOK
Insert image description here
ColumnNewExtended Attribute
Insert image description here


Insert image description here
Get Method Script tab%Get% = ""Change to %Get% = Rtf2Ascii (obj.Comment), as shown in the figure: Confirm to save, return to the view interface, find ->
Insert image description here
Insert image description here
in the toolbar, as shown in the figure: click -> in sequence , as shown in the figure: select , and then click the button on the right side, as shown in the figure: Find the previously set , check and save, as shown in the figure: Return to the view interface, and the fields can be displayed now , as shown in the figure:工具显示首选项
Insert image description here
TableAdvanced
Insert image description here
ColumnsList ColumnsSelect
Insert image description here
AttributeComment
Insert image description here
tableComment
Insert image description here

Guess you like

Origin blog.csdn.net/liuhuanping/article/details/132556822