Show TOC

Define Navigation Property BindingLocate this document in the navigation structure

This document describes defining Navigation Property Binding 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

You can define a Navigation Property Binding for each Navigation Property of an Entity Type. Navigation property bindings tell up-front into which Entity Set a Navigation Property will lead from a given start Entity Set. They are unidirectional replacement for Association Sets (can be seen in projects complying with OData version 2.0), and they are optional.

If you do not define Navigation Property Binding for a Navigation Property, then the methods READ_REF_KEY and READ_REF_KEY_LIST in Data Provider Class for the Navigation Property will not be implemented. Gateway Runtime does not support navigations if Navigation Property Binding is not there for a Navigation Property.

Prerequisites
You should have created
  • an OData V4 project
  • an Entity Type
  • Navigation Property(s)
  • an Entity Set
Procedure
To define Navigation Property Binding, follow below procedure:
  1. ExpandStart of the navigation path Data Model Next navigation step Entity Sets End of the navigation path.
  2. Double click on the Start of the navigation path Entity Set Next navigation step Navigation Property Binding End of the navigation path for which you want to define a Navigation Property Binding.
  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 Navigation Property Path column, enter a Navigation Property name such that this Navigation Property must be residing in the Entity Type to which the Entity Set is bound. You cannot name a Navigation Property in more than one Navigation Property Bindings; you can use Navigation Property Bindings only when all related entities are known to come from a single Entity Set.
  6. In the Target Entity Set column, enter the name or path of the Entity Set specifying the Entity Set or the Navigation Property. The value of the Target Entity Set must resolve to an Entity Set.
  7. Click Save to save the changes made.