Context
The Entity Type describe the structure of data in an OData Model. Entity types
represent a specific type of data, for example an item or a concept. Entity type
OData Model Element comprises of:
- Entity name-Unique name
- Entity Sets
- Properties
- Key, which can be defined by one or more properties (Is Key)
- Navigation Properties (optional to navigate between associations)
To create an entity type in your project, proceed as follows:
- Select Entity Type under Objectsin the palette,
press and hold down the left mouse button, drag the element onto the graphical
editor region.
- Drop the element by releasing the mouse button. A graphical representation of
the entity type (OData Model Element) is created on the OData Model
Editor.
Alternatively, you can also click on the Entity Type in the
palette and click inside the OData Model Editor to create the entity
type.
Note Every new
entity will have a unique name at the time of creation.
The Entity
name field is in editable status immediately.
- Enter a name for the Entity and press "Enter" in the keyboard or click outside the entity
name field.
The following elements are updated for the selected entity with
new entity name:
- Entity Set
- Key Property ID
Note Renaming the
entity type will rename the corresponding entity sets, navigation
properties and the default key properties.