Creating an OData Model Using Metadata File

 

Context

The File Import function is used to import metadata files types (edmx and xml) to create an OData model.

During the import of an EDMX file, the graphical information is computed, and the corresponding shapes are created in the OData Model Editor and arranged as follows:
  • Entities
  • Complex Types
  • Function Imports

To create an OData model using a service metadata file proceed as follows:

Procedure

  1. Create a project as outlined in the Creating a Project section.
  2. Right click on the project in the Project Tree region, and select New and then Other.
    The Select a Wizard window displays.
  3. Locate Ogee folder, expand it and select OData Model.
  4. Click Next to proceed.

    The Create New OData Model window appears.

  5. Choose Browse or enter the folder name in the Folder field to select a project folder for the new OData model.
  6. Enter a name for the model in the Model name field.
  7. Select OData Metadata File from the list and click Next.
    The New OData model based on a metadata file system window appears.
  8. Enter the path to access the edmx or xml file, or click Browse to choose the file from the system and click Go.
    On selection of a valid file the contents of the file will be populated in the Service details region of the window.
  9. Click Finish.
    The selected file is converted to an OData service and displayed in the OData Model Editor. All the sections in entity element open up in a expanded state for editing.
    Note The errors in the imported model are indicated by the error icons. The Problems tab view in the properties view displays the errors in the model.

    The service is now ready to be edited and will be stored under the folder selected in the Project Explorer.