Powerdesigner 使用技巧

1、主键code不能重复

       打开tool -- 模型设置--域/属性--DataItem--把Unique Code 前面的对钩去掉

2、名称(name)和代码(code)值联动的问题

       打开tool -- 模型设置--域/属性--DataItem--全部对象--Enable links to reguirements前面的对钩取掉。

       Tools -->General Options -->Dialog -->去掉Name to Code mirroring前面的勾

3、实体属性被复用时联动的问题。

域/属性--DataItem--把all reuse前面的对钩去掉。

4、PowerDesigner使用MySQL的auto_increment

   打开table properties窗口 columns 选中id打开columns properties窗口勾选identity即可。

 

5、PowerDesigner去掉SQL脚本中的双引号

    把Database Edit Current DBMS General Script Sql Format CaseSensitivityUsingQuote设置为NO即可

6、code和name区别

   CODE是实际转换为数据库时的字段名
   NAME只是做注释用的

猜你喜欢

转载自jwlsky.iteye.com/blog/1810111