Creating a Complex Type

This section will guide you to create Complex Types.

Context

To create a complex type in the OData Model Editor proceed as follows:

Procedure

  1. Select Complex Type under Objects in the palette, press and hold down the left mouse button, drag the object onto the OData Model Editor.
    Note The new complex type will be created with a unique default name.

    The context pad of the complex type OData Model Element has three menus:

    • Add Property - Choose to add a new property to the Complex Type
    • Add Complex Property - Choose to add a new Complex property
    See Working in the OData Model Editor for more information of working with the OData Model Elements.
    Note The OData Model Element also comes with a context menu Alternatively, the context menu can be used to add preferred property.
  2. Select the added property and navigate to the Properties view and configure the newly added properties.
    In the Properties view, choose the drop-down in the Type field and select a type to be assigned for new property.
  3. Save the Odata Model Editor.