0

如何在 C# 中迭代​​ powerdesigner 模型的 BusinessRules?这不起作用:

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

1 回答 1

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

另一种可能:

PdPDM.ObjectCol col = pdModel.BusinessRules;
foreach (PdCommon.BusinessRule rul in col) {
   /*...*/ 
}
于 2014-09-25T18:16:56.570 回答