Show TOC

Create Entity SetsLocate this document in the navigation structure

This document describes creating Entity Sets for the Service Builder projects complying with OData V4

NoteThe following image contains links to more information.
This document describes about the Service Builder projects that comply with OData V4, the development approach followed by it and its User Interface. This document describes creating an empty Service Builder project complying with OData V4. This document describes steps for creating Entity Types in Service Builder Project complying with OData V4. This document describes creating properties for an entity type complying with OData V4. This document describes creating Navigation Properties in the Service Builder project complying with OData V4. This document describes creating Entity Sets for the Service Builder projects complying with OData V4 This document describes defining Navigation Property Binding for the Service Builder projects complying with OData V4. This document describes creating complex types in the project complying with OData V4.
Context

An entity set allows access to entity type instances. While an entity type describes a data structure, an entity set can expose instances of the specified entity type as well as any entity type inherited from the specified entity type.

Prerequisites

You should have created an OData V4 project and created an Entity Type.

Procedure
To create an Entity Set follow below procedure
  1. In the context menu of Data Model folder, select Start of the navigation path Data Model Next navigation step Entity Set End of the navigation path. Create Entity Sets dialog box appears.
  2. In Create Entity Set dialog box enter the Entity Set Name and the related Entity Type name.
An Entity Set is created.
Alternatively, you can create an Entity Set by performing the following steps:
  1. Expand Data Model folder in the tree view of your project.
  2. Double-click Entity Set folder to open mass edit view.
  3. Click Display <-> Change to change to edit mode
  4. Click Insert Row to insert a row or Append Row to append a row.
  5. In Name column, enter a valid name for the Entity Set.
  6. In Entity Type Name column, enter the name of an existing entity type of your project or search for an Entity Type in your project using the input help.
  7. In Internal Name column, you can enter a valid internal name for the Entity Set. If you do not enter any value for the Internal Name, the system generates a unique name.
  8. Include is selected by default allowing the Entity Set to be displayed in service document. Deselect Include if you do not want the specific Entity Set to be displayed in service document.
  9. Click Save to save the changes made.
Constraint

If you create two Entity Sets having first 16 characters identical, unique method names are generated for these identical Entity Sets at the time of project generation.