Share via


EdmModelExtensions.GetActionLinkBuilder Method (IEdmModel, IEdmFunctionImport)

 

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

Namespace:   System.Web.Http.OData
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

Syntax

public static ActionLinkBuilder GetActionLinkBuilder(
    this IEdmModel model,
    IEdmFunctionImport action
)
public:
[ExtensionAttribute]
static ActionLinkBuilder^ GetActionLinkBuilder(
    IEdmModel^ model,
    IEdmFunctionImport^ action
)
static member GetActionLinkBuilder : 
        model:IEdmModel *
        action:IEdmFunctionImport -> ActionLinkBuilder
<ExtensionAttribute>
Public Shared Function GetActionLinkBuilder (
    model As IEdmModel,
    action As IEdmFunctionImport
) As ActionLinkBuilder

Parameters

Return Value

Type: System.Web.Http.OData.Builder.ActionLinkBuilder

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

See Also

EdmModelExtensions Class
System.Web.Http.OData Namespace

Return to top