This document describes steps for creating Entity Types in Service Builder Project
complying with OData V4.
NoteThe following image contains links to more information.
You should have already created an OData V4 project
Context
Entity Types in Service Builder, describe the structure of data in Entity Data Model (EDM). An
entity represents a specific type of data, for example an item or a concept. Entity
types comprise:
- A unique name
- A key, which can be defined by one or more properties (Is Key)
- Properties
- Navigation properties (optional)
The entity type properties must adhere to the data types allowed and provided
by the OData V4 protocol or be of a complex type. An entity type must have a unique
identifier that allows the entities belonging to this entity type to be used within
an OData context. To create Entity Types proceed as follows:
Procedure
- Right click Data Model folder in the tree view, select . This opens the Create Entity wizard.
- In Entity Type name column specify name for the Entity
Type. The name for Entity Type must be unique. Maximum number of characters
allowed in this column is 128. Special characters except ‘_’ are not allowed.
The name must start with either an alphabet or ‘_’. An error message displays if
a character in the specified name is not allowed.
- Create Related Entity Set is optional. Select this option
to create an Entity Set along with the Entity Type. This enables Entity Set Name
column and a default Entity Set name is displayed that can be edited. Click OK,
a new Entity Type and its Entity Set are created. In mass edit view, the entity
type table displays the entries for the new data model elements.
- Click to save the changes made in the project.