0

Power Designer にエンティティ オブジェクトがあり、その継承を見ていきますが、子オブジェクトを取得する方法がわかりません。誰かがサンプルコードを投稿できますか? 継承のオブジェクト ID を取得することも重要です。

編集:パスカルの例に基づくソリューションのアイデア:

foreach (PdCDM.Inheritance curPDInheritance in curPDEntity.InheritedBy){
  foreach(PdCDM.InheritanceLink curPDInheritanceLink in curPDInheritance.InheritanceLinks){
    Console.WriteLine(curPDEntity.Name + " parent of " + ((PdCDM.Entity)curPDInheritanceLink.ChildEntity).Name+ " through " + curPDInheritance.Name + " (" + curPDInheritance.ObjectID + ")");
  }
}
4

1 に答える 1