Share via


ODataOptions.AddRouteComponents Method

Definition

Overloads

AddRouteComponents(IEdmModel)

Adds an IEdmModel to the default route.

AddRouteComponents(IEdmModel, ODataBatchHandler)

Adds an IEdmModel, as well as the given ODataBatchHandler, to the default route.

AddRouteComponents(String, IEdmModel)

Adds an IEdmModel to the specified route.

AddRouteComponents(String, IEdmModel, ODataBatchHandler)

Adds an IEdmModel, as well as the given ODataBatchHandler, to the specified route.

AddRouteComponents(String, IEdmModel, Action<IServiceCollection>)

Adds an IEdmModel using the service configuration.

AddRouteComponents(IEdmModel)

Adds an IEdmModel to the default route.

public Microsoft.AspNetCore.OData.ODataOptions AddRouteComponents(Microsoft.OData.Edm.IEdmModel model);
member this.AddRouteComponents : Microsoft.OData.Edm.IEdmModel -> Microsoft.AspNetCore.OData.ODataOptions
Public Function AddRouteComponents (model As IEdmModel) As ODataOptions

Parameters

model
IEdmModel

The IEdmModel to add.

Returns

The current ODataOptions instance to enable fluent configuration.

Applies to

AddRouteComponents(IEdmModel, ODataBatchHandler)

Adds an IEdmModel, as well as the given ODataBatchHandler, to the default route.

public Microsoft.AspNetCore.OData.ODataOptions AddRouteComponents(Microsoft.OData.Edm.IEdmModel model, Microsoft.AspNetCore.OData.Batch.ODataBatchHandler batchHandler);
member this.AddRouteComponents : Microsoft.OData.Edm.IEdmModel * Microsoft.AspNetCore.OData.Batch.ODataBatchHandler -> Microsoft.AspNetCore.OData.ODataOptions
Public Function AddRouteComponents (model As IEdmModel, batchHandler As ODataBatchHandler) As ODataOptions

Parameters

model
IEdmModel

The IEdmModel to add.

batchHandler
ODataBatchHandler

The batch handler ODataBatchHandler to add.

Returns

The current ODataOptions instance to enable fluent configuration.

Applies to

AddRouteComponents(String, IEdmModel)

Adds an IEdmModel to the specified route.

public Microsoft.AspNetCore.OData.ODataOptions AddRouteComponents(string routePrefix, Microsoft.OData.Edm.IEdmModel model);
member this.AddRouteComponents : string * Microsoft.OData.Edm.IEdmModel -> Microsoft.AspNetCore.OData.ODataOptions
Public Function AddRouteComponents (routePrefix As String, model As IEdmModel) As ODataOptions

Parameters

routePrefix
String

The model related prefix. It could be null which means there's no prefix when access this model.

model
IEdmModel

The IEdmModel to add.

Returns

The current ODataOptions instance to enable fluent configuration.

Applies to

AddRouteComponents(String, IEdmModel, ODataBatchHandler)

Adds an IEdmModel, as well as the given ODataBatchHandler, to the specified route.

public Microsoft.AspNetCore.OData.ODataOptions AddRouteComponents(string routePrefix, Microsoft.OData.Edm.IEdmModel model, Microsoft.AspNetCore.OData.Batch.ODataBatchHandler batchHandler);
member this.AddRouteComponents : string * Microsoft.OData.Edm.IEdmModel * Microsoft.AspNetCore.OData.Batch.ODataBatchHandler -> Microsoft.AspNetCore.OData.ODataOptions
Public Function AddRouteComponents (routePrefix As String, model As IEdmModel, batchHandler As ODataBatchHandler) As ODataOptions

Parameters

routePrefix
String

The model related prefix. It could be null which means there's no prefix when access this model.

model
IEdmModel

The IEdmModel to add.

batchHandler
ODataBatchHandler

The $batch handler ODataBatchHandler.

Returns

The current ODataOptions instance to enable fluent configuration.

Applies to

AddRouteComponents(String, IEdmModel, Action<IServiceCollection>)

Adds an IEdmModel using the service configuration.

public Microsoft.AspNetCore.OData.ODataOptions AddRouteComponents(string routePrefix, Microsoft.OData.Edm.IEdmModel model, Action<Microsoft.Extensions.DependencyInjection.IServiceCollection> configureServices);
member this.AddRouteComponents : string * Microsoft.OData.Edm.IEdmModel * Action<Microsoft.Extensions.DependencyInjection.IServiceCollection> -> Microsoft.AspNetCore.OData.ODataOptions
Public Function AddRouteComponents (routePrefix As String, model As IEdmModel, configureServices As Action(Of IServiceCollection)) As ODataOptions

Parameters

routePrefix
String

The model related prefix.

model
IEdmModel

The IEdmModel to add.

configureServices
Action<IServiceCollection>

The sub service configuration action.

Returns

The current ODataOptions instance to enable fluent configuration.

Applies to