PowerDesigner从数据库中反向生成PDM,Name不显示字段说明的解决方法
来源:互联网 发布:淘宝哪家的衣服好看 编辑:程序博客网 时间:2024/05/21 08:42
使用Reverse engineer从数据库反向生成PDM的时候,PDM中的表的Name和Code事实上都是Code,为了把Name替换为数据库中Table或Column的中文Comment,可以使用以下脚本:在PowerDesigner中使用方法为:
PowerDesigner->Tools->Execute Commands->Edit/Run Scripts
或 工具->Execute Commands->Edit/Run Scripts
将代码Copy进去执行就可以了,是对整个CDM或PDM进行操作
修改前修改后Option ExplicitValidationMode = TrueInteractiveMode = im_BatchDim mdl ' the current model' get the current active modelSet mdl = ActiveModelIf (mdl Is Nothing) ThenMsgBox "There is no current Model "ElseIf Not mdl.IsKindOf(PdPDM.cls_Model) ThenMsgBox "The current model is not an Physical Data model. "ElseProcessFolder mdlEnd IfPrivate sub ProcessFolder(folder)On Error Resume NextDim Tab 'running tablefor each Tab in folder.tablesif not tab.isShortcut thentab.name = tab.commentDim col ' running columnfor each col in tab.columnsif col.comment="" thenelsecol.name= col.commentend ifnextend ifnextDim view 'running viewfor each view in folder.Viewsif not view.isShortcut thenview.name = view.commentend ifnext' go into the sub-packagesDim f ' running folderFor Each f In folder.Packagesif not f.IsShortcut thenProcessFolder fend ifNextend sub
0 0
- PowerDesigner从数据库中反向生成PDM,Name不显示字段说明的解决方法
- PowerDesigner 从数据库反向生成Pdm时把Comment复制到Name中,从PowerDesigner导入数据库时把Name复制到Comment
- PowerDesigner中SQL文件、数据库表反向生成PDM
- PowerDesigner中SQL文件、数据库表反向生成PDM
- PowerDesigner中SQL文件、数据库表反向生成PDM
- PowerDesigner中SQL文件、数据库表反向生成PDM
- PowerDesigner中SQL文件、数据库表反向生成PDM
- PowerDesigner中SQL文件、数据库表反向生成PDM
- PowerDesigner 反向工程,根据数据库生成pdm
- powerdesigner反向生成pdm
- powerdesigner中sql脚本反向生成pdm
- PowerDesigner反向生成PDM和name与注释互换
- PowerDesigner反向生成PDM和name与注释互换
- PowerDesigner反向生成PDM和name与注释互换
- powerdesigner生成的数据库中没有字段说明的解决办法
- powerdesigner生成的数据库中没有字段说明的解决办法
- powerdesigner生成的数据库中没有字段说明的解决办法
- 数据库中导出SQL,使用PowerDesigner 让SQL反向工程生成pdm数据库mode。
- mysql 5.6安装与配置
- java失败的跳槽续
- NSMutableString 可变字符串
- spring的事务中程序控制事务成功失败(Transaction marked as rollback)
- 使用android-junit-report.jar导出单元测试报告
- PowerDesigner从数据库中反向生成PDM,Name不显示字段说明的解决方法
- 让IT工作者过度劳累的12个坏习惯
- web开发CSS样式Position详解
- 从当前Activity 获取根视图(Root view )
- Android应用插件式开发解决方法
- 简述HashMap和Hashtable的区别
- 解释一下SQLSERVER事务日志记录
- WiFI浅谈
- iOS 微信分享 朋友圈