Skip to content

EdmOperations bound to derived types of navigation properties are missed from the generated document. #83

@garethj-msft

Description

@garethj-msft

Let's say you have two entityTypes with an inheritance relationship Vehicle <-- Car
Then you bind an operation to Car, e.g. DriveFast()

Then the only time Vehicle is used is as a nav property
entitySet : vehicleTransporters(VehicleTransporter)

VehicleTransporter --navProp-- vehicles(Vehicle)

None of the exisiting three cases in ODataPathProvider.cs will pick this operation up, as it is neither an entitySet or Singleton, or a derived type of the types of those, of a non-derived navigation property.

A fourth case is needed for derived navigation properties.

We have quite a lot of actions bound to derived types in our model, so this is making our OAS file inaccurate.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions