Share via


EdmModelExtensions.GetOperationLinkBuilder(IEdmModel, IEdmOperation) Method

Definition

Gets the OperationLinkBuilder to be used while generating operation links for the given action.

public static Microsoft.AspNet.OData.Builder.OperationLinkBuilder GetOperationLinkBuilder (this Microsoft.OData.Edm.IEdmModel model, Microsoft.OData.Edm.IEdmOperation operation);
static member GetOperationLinkBuilder : Microsoft.OData.Edm.IEdmModel * Microsoft.OData.Edm.IEdmOperation -> Microsoft.AspNet.OData.Builder.OperationLinkBuilder
<Extension()>
Public Function GetOperationLinkBuilder (model As IEdmModel, operation As IEdmOperation) As OperationLinkBuilder

Parameters

model
IEdmModel

The IEdmModel containing the operation.

operation
IEdmOperation

The operation for which the link builder is needed.

Returns

The OperationLinkBuilder for the given operation if one is set; otherwise, a new OperationLinkBuilder that generates operation links following OData URL conventions.

Applies to