To add an entity to a diagram, drag it from the Model Explorer window to the diagram area.
To add entities and associations related to a certain class, complex type or enum type to the diagram, right-click the required object in the diagram area and select the Include Related context menu option.
To delete an entity from the diagram, select it and press DELETE. You will be asked whether to delete it from the model, or just from the diagram. Click No to delete an entity only from the diagram and keep it in the model.
All model changes, for example, deleting entities, properties or associations, affect all the model diagrams immediately.
|
When creating an object in the model, the corresponding classes, complex types and enum types are not always created on the diagram. If an entity is created in the Model Explorer docking window, the new object does not exist on the diagram until dragged on it. If you drag a table, view or a procedure from the Database Explorer docking window to the diagram, a new class or complex type will be created automatically.
|
|
It is possible to select the required objects on the diagram, then copy them to clipboard and paste in a new model or on another diagram. When pasting in a new model, objects are created both on the diagram and in the model. When pasting in the same model, in case presentations of these objects already exist in the diagram, then copies of model objects and their presentations are created; in case there are no presentations of the copied objects on the diagram, then the objects themselves are not copied, and only their presentations are created on the destination diagram.
|
|