Explains the different options for working with copy and paste in the Service Builder to
copy data model artifacts.
Context
To simplify and enhance usability within the Service Builder, you can copy and paste
data model artifacts within a project or between different open projects in the
Service Builder. You can copy artifacts from any projects in display or edit mode,
but the project in which you want to paste the copied projects must be in edit mode.
You can copy and paste the following data model artifacts:
- Entity types (including properties and navigation properties)
- Associations
- Entity sets
- Association sets
- Function imports
- Complex types
Working with Copy and Paste Icons in the Mass Maintenance
ViewThe mass maintenance view includes the following functions to
facilitate the copying and pasting of artifacts within or between open projects
in the Service Builder. The project to which you want to paste copied artifacts
must be in edit mode.
- Copy to Clipboard: Select the nodes you want to
copy so that you can paste the artifacts elsewhere within this project
or to a different project. An information message is displayed at the
bottom of the screen to indicate how many nodes have been selected and
copied to the clipboard.
- Cut to Clipboard: Select the nodes you want to
cut from this location so that you can paste the artifacts elsewhere
within this project or to a different project. You are prompted to
confirm whether you really want to delete the nodes from the current
location. An information message is displayed at the bottom of the
screen to indicate how many nodes have been selected and cut to the
clipboard.
- Paste from Clipboard: Select this icon to paste
from the clipboard the artifacts previously copied from a different
location within this project or from a different project to the new
location. An information message is displayed at the bottom of the
screen to indicate how many nodes have been selected and pasted from the
clipboard.
To use the copy and paste functions in the mass maintenance view,
proceed as follows:
- Open the project from or within which you want to copy data model
artifacts.
- Double-click the folder in the project that contains the artifacts you want to
copy.
- Select the nodes that contain the artifacts you want to copy and paste to a
different location and choose Copy to Clipboard to create
a copy of the nodes or Cut to Clipboard to create a copy
of the nodes and at the same time remove the nodes from the current
location.
- Double-click the folder in the same project, or in a different project, to which
you want to paste the nodes you have copied.
- In the mass maintenance view for the new folder, choose Paste from
Clipboard.
- The nodes you copied from the previous location are pasted to the new
location.
Working with Copy and Paste Shortcut Keys in the Tree ViewIn
the tree view for your projects, you can use the standard copy
Ctrl C
and paste
Ctrl V shortcut keys to copy and paste artifacts within a
project or between open projects. To copy a data model in its entirety from one
project to another and ensure that node references such as those between entity
sets and entity types are copied and retained too, proceed as follows:
- Open the project from which you want to copy the data model.
- Select the Data Model folder and all its
subfolders and press Ctrl C. The artifacts that have been
copied to the clipboard are expanded in the tree view and highlighted in
yellow. An information message is displayed at the bottom of the screen
to confirm the number of nodes copied to the clipboard.
- Open the project to which you want to copy the data model and ensure
that this project is in edit mode.
- Select the Data Model folder and press Ctrl
V. This copies all the data model artifacts from one project
to another. The artifacts that have been pasted from the clipboard into
the project are expanded in the tree view and highlighted in yellow. An
information message is displayed at the bottom of the screen to confirm
the number of nodes pasted from the clipboard.
Working with Copy and Paste Context Menu in
the Tree ViewYou can use the copy and paste functions from the context
menu in the tree view to create copies in other open projects in edit mode. In
this way, you can easily reuse existing entity types together with their
properties and navigation properties, for example. To use the copy and paste
functions from the context menu, proceed as described in the following
example: