ODataMvcBuilderExtensions.AddOData Method

Definition

Overloads

AddOData(IMvcBuilder)

Adds essential OData services to the specified IMvcBuilder.

AddOData(IMvcBuilder, Action<ODataOptions,IServiceProvider>)

Adds essential OData services to the specified IMvcBuilder.

AddOData(IMvcBuilder, Action<ODataOptions>)

Adds essential OData services to the specified IMvcBuilder.

AddOData(IMvcBuilder)

Adds essential OData services to the specified IMvcBuilder.

C#
public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddOData (this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder);

Parameters

builder
IMvcBuilder

The IMvcBuilder to add services to.

Returns

A IMvcBuilder that can be used to further configure the OData services.

Applies to

OData Web API ASP .NET Core 8.0.0
Product Versions
OData Web API ASP .NET Core 8.0.0

AddOData(IMvcBuilder, Action<ODataOptions,IServiceProvider>)

Adds essential OData services to the specified IMvcBuilder.

C#
public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddOData (this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, Action<Microsoft.AspNetCore.OData.ODataOptions,IServiceProvider> setupAction);

Parameters

builder
IMvcBuilder

The IMvcBuilder to add services to.

setupAction
Action<ODataOptions,IServiceProvider>

The OData options to configure the services with, including access to a service provider which you can resolve services from.

Returns

A IMvcBuilder that can be used to further configure the OData services.

Applies to

OData Web API ASP .NET Core 8.0.0
Product Versions
OData Web API ASP .NET Core 8.0.0

AddOData(IMvcBuilder, Action<ODataOptions>)

Adds essential OData services to the specified IMvcBuilder.

C#
public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddOData (this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, Action<Microsoft.AspNetCore.OData.ODataOptions> setupAction);

Parameters

builder
IMvcBuilder

The IMvcBuilder to add services to.

setupAction
Action<ODataOptions>

The OData options to configure the services with, including access to a service provider which you can resolve services from.

Returns

A IMvcBuilder that can be used to further configure the OData services.

Applies to

OData Web API ASP .NET Core 8.0.0
Product Versions
OData Web API ASP .NET Core 8.0.0