When this check box is selected, UModel will automatically create ComponentRealization relationships and code engineering components in the target model.
Wenn dieses Kontrollkästchen aktiviert ist, erstellt UModel automatisch Komponentenrealisierungsbeziehungen und Code Engineering-Komponenten im Zielmodell.
Autres résultats
Specifically, whenever you import the database for the first time, a code engineering component is generated automatically under the "Component View" package.
Immer, wenn Sie die Datenbank das erste Mal importieren, wird unter dem Paket "Component View" automatisch eine Code Engineering-Komponente generiert.
The easiest way to create a ComponentRealization from a class to a component is to drag the class and drop it onto the code engineering component.
Die einfachste Methode, um eine Komponentenrealisierung von einer Klasse zu einer Komponente zu erstellen, ist, die Klasse auf die Code Engineering-Komponente zu ziehen.
However, if you intend to synchronize from the model to the database, each new class (table) that you add must have a ComponentRealization relationship to the code engineering component.
Wenn Sie jedoch beabsichtigen, die Datenbank anhand des Modells zu synchronisieren, muss jede neue Klasse (Tabelle), die Sie hinzufügen, eine Komponentenrealisierungsbeziehung zur Code Engineering-Komponente haben.
For code engineering to be possible, the code engineering component must realize all the classes (tables) from the model-notice all the ComponentRealization relationships in the image above.
Damit ein Code Engineering durchgeführt werden kann, muss die Code Engineering-Komponente alle Klassen (Tabellen) aus dem Modell realisieren. Beachten Sie alle Komponentenrealisierungsbeziehung in der Abbildung oben.
Make sure to click the code engineering component in the Model Tree window (in this case, "MyApp") in order to populate the Properties window.
Vergewissern Sie sich, dass Sie im Fenster "Modell-Struktur" auf die Code Engineering-Komponente geklickt haben (in diesem Fall auf "MyApp"), damit das Fenster "Eigenschaften" befüllt wird.
In the Model Tree window, click the class to be realized by the component (Car and ColorType, in this example) and drag and drop onto the code engineering component (Component1).
Klicken Sie im Fenster "Modell-Struktur" auf die Klasse, die von der Komponente realisiert werden soll (in diesem Beispiel Car und ColorType) und ziehen Sie sie mit der Maus auf die Code Engineering-Komponente (Komponente1).
Next, create a ComponentRealization relationship between the classes from which C++ code must be generated (Car and ColorType, in this example) and the code engineering component.
Erstellen Sie als nächstes zwischen den Klassen, anhand welcher C++-Code generiert werden muss (in diesem Beispiel Car und ColorType) und der Code Engineering-Komponente eine Komponentenrealisierungsbeziehung.
The component must have the property use for code engineering enabled.
Classes that are not realized by this component will not be part of code engineering.
Klassen, die von dieser Komponente nicht realisiert werden, bilden nicht Teil des Code Engineering.
To prepare a component for code engineering
So bereiten Sie eine Komponente für das Code Engineering vor
Select the option Generate ComponentRealizations and Components if you intend to enable code engineering in the target package.
Aktivieren Sie die Option Komponentenrealisierungen und Komponenten generieren, wenn Sie vorhaben, das Code Engineering im Zielpaket zu aktivieren.
In the Properties window for the component, check the box labeled "use for code engineering," and assign a directory.
Aktivieren Sie im Fenster "Eigenschaften" für die Komponente das Kontrollkästchen "für Code Engineering verwenden" und weisen Sie ihm ein Verzeichnis zu.
Contenu potentiellement sensible ou inapproprié
Les exemples vous aident à traduire le mot ou l’expression cherchés dans des contextes variés. Ils ne sont ni sélectionnés ni validés par nous et peuvent contenir des mots ou des idées inappropriés. Signalez des exemples à modifier ou à retirer. Les traductions potentiellement sensibles, inappropriées ou familières sont généralement marquées de rouge ou d’orange.