Skip to content

Rider plugin that provides UI to generate OData Reference using OData CLI

License

Notifications You must be signed in to change notification settings

ellizio/rider--plugin--odata-cli-ui

Repository files navigation

OData CLI UI

Rider plugin that provides UI to generate OData Reference using OData CLI


Installation

  1. Install plugin from Marketplace or download from Releases page and install manually
  2. Install the latest version of the OData CLI tool with the command dotnet tool install -g Microsoft.OData.Cli

Usage

  1. Open solution
  2. Select OData Reference... action under project or Web Reference context menu
  3. Fill required Service name and Metadata source and other optional parameters according documentation
  4. Click OK and wait until generation finishes

⚠️ Known Restrictions

  1. ✅ Waiting for release with fix
    Output metadata .xml file is always named OData ServiceCsdl.xml which will throw a runtime exception. See more OData/ODataConnectedService#384
    There is a workaround:
    a. Rename OData ServiceCsdl.xml to <Service name>Csdl.xml, where <Service name> is value from OData CLI UI dialog
    b. Adjust embedded resource path in .csproj file
    c. Find GeneratedEdmModel.filePath constant in Reference.cs and change value from OData ServiceCsdl.xml to <Service name>Csdl.xml, where <Service name> is value from OData CLI UI dialog

Additional References