PowerDesigner - 访问Model的BusinessRules

时间:2014-09-25 13:29:15

标签: c# powerdesigner

如何通过powerdesigner模型的BusinessRules迭代C#? 这不起作用:

private static void importModelPackages(PdCDM.Model pdModel){
        foreach (PdCDM.ObjectCol curPDBusinessRule in pdModel.BusinessRules){ /*...*/ }
}

1 个答案:

答案 0 :(得分:0)

foreach (PdCommon.BusinessRule curPDBusinessRule in pdModel.BusinessRules) {
   /*...*/ 
}

另一种可能性:

PdPDM.ObjectCol col = pdModel.BusinessRules;
foreach (PdCommon.BusinessRule rul in col) {
   /*...*/ 
}