Automation Software Apartment

Power Designer【1】-创建ER概念模型

2016-03-24  本文已影响99人  1Z实验室阿凯

1.选择File > New Model 打开创建新模型对话框

Paste_Image.png
  1. 创建概念模型

选择路径 : Categories > Information > Conceptual Data
修改 Model name

Paste_Image.png

点击确定

Paste_Image.png

若需要使用继承[Inheritance] 和 连接实体

参照文章
Power Designer 16.5:激活 Inheritance ,Association,Association Link

3.添加实体

Paste_Image.png

双击进行编辑

Paste_Image.png

点击Attribute 对属性进行编辑

Paste_Image.png

字段简写说明
M:Mandatory 是否允许为空 选中则不允许 当勾选P时 自动默认为M
P:Primary Identified 主键
D: Displayed 是否显示在E-R图里面

选择列的类型

Paste_Image.png

最后效果


Paste_Image.png

4.添加联系

添加Relationship 有两种方式,一种是添加直接联系(Link),另一种是添加联系实体。
方式一 添加直接联系

Paste_Image.png

双击联系进行编辑
因为Student和Class添加联系 Class 和 Student是典型的一对多的关系 所以我们选择 Many-one 选项。

Paste_Image.png

这是最后效果


Paste_Image.png

方式二 添加联系实体

1.拖动一个联系实体出来


Paste_Image.png

2.双击进行编辑

Paste_Image.png Paste_Image.png

3.与实体添加Association Link


Paste_Image.png Paste_Image.png
上一篇 下一篇

猜你喜欢

热点阅读