Exporting an OData Model from the OData Model Editor

Use the Export OData Model wizard to export an OData model file, *.odata, from a project in the OData Model Editor, to an XML file. Later, you can use the exported file in another tool to quickly implement an OData service from the model.

Context

 The export feature allows you to specify the supported XML format based on the version of the OData Common Schema Definition Language (CSDL) you want. The exported file can be in one of the following versions of CSDL:

  • OData V2

    Select this option if you want the exported file to be saved in version two of OData CSDL.

In addition, the framework enables you to create and implement your own custom export functionality to save the exported file to your custom file formats.

To export the OData model file, proceed as follows:

Procedure

  1. From the File menu, choose, Export> Ogee> OData Model and choose Next. The Export Service Model window opens.
  2. In Model Name, choose Browse to select the specific *.odata file you want to export. If you have already selected the specific *.odata file, it is displayed with the full pathname.
  3. From Export Format, select the OData protocol version in which you want to save the file. The following is the supported formats, OData V2.
  4. In Export As, choose Browse to specify the folder in which you want to save the new file, and enter a name for the file. The file is saved as an XML file.
  5. Choose Finish to export the file.