You can apply annotations to OData artifacts from the Properties View
Annotations tab.
Note The Annotations tab
is enabled only when an OData artifact that supports annotations is selected.
To apply annotations to an OData artifact:
- Select the desired artifact from the model and choose
(maintain annotation) from the Properties view toolbar. The
Maintain Annotation page is displayed showing the
available (loaded) vocabularies. These vocabularies contain the applicable
terms for the selected artifact.
- Expand the desired vocabulary.
Note If terms have
already been selected for this vocabulary, they appear in the list with
thier checkbox selected.
- If the desired vocabulary is missing, you can add it manually using the
edmx references. For more information see the
Adding EDMX References topic.
- Select the checkbox of the desired term(s).
- When finished, choose OK. The annotations tab is
displayed in the Properties view.
- You can edit each term in the Value column according
to the term's limitations.
To edit simple value annotations:
- Entering the appropriate value (according to the annotation type).
- Selecting an artifact from the Value drop-down list.
If there are other artifacts of the same type (for example, edm.string
type), they are displayed in the drop-down list.
Note For Boolean annotations, the
drop-down list contains True,
False, and Artifacts of type Boolean (in this case
you cannot enter the value).
Note If the term is annotated with the
annotation isPropertyPath, you can choose its value only
from the drop-down list . You can check the annotations for the terms in each of
the vocabularies. To acces the vocabularies provided out-of-the-box, go to the
OASIS repositories webpage.
Annotations of type record can contain simple value annotations and annotation
collections within them. To see what the record annotiation is composed of, expand
the term cell.
To edit record annotations:
- Edit the simple value annotations.
- Edit collections:
- selecting the value cell and choosing
. The Maintain Dynamic
Annotation dialog is opened.
- Expand the collection to set the value for each annotation.
- To add a collectable expression, select the desired collection row
and choose Add.
- To remove a collectable expression, select the desired collectable
expression's row and choose Remove.