ODataMvcBuilderExtensions.AddOData Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |
Adds essential OData services to the specified IMvcBuilder.
public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddOData (this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder);
static member AddOData : Microsoft.Extensions.DependencyInjection.IMvcBuilder -> Microsoft.Extensions.DependencyInjection.IMvcBuilder
<Extension()>
Public Function AddOData (builder As IMvcBuilder) As IMvcBuilder
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 |
Adds essential OData services to the specified IMvcBuilder.
public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddOData (this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, Action<Microsoft.AspNetCore.OData.ODataOptions,IServiceProvider> setupAction);
static member AddOData : Microsoft.Extensions.DependencyInjection.IMvcBuilder * Action<Microsoft.AspNetCore.OData.ODataOptions, IServiceProvider> -> Microsoft.Extensions.DependencyInjection.IMvcBuilder
<Extension()>
Public Function AddOData (builder As IMvcBuilder, setupAction As Action(Of ODataOptions, IServiceProvider)) As IMvcBuilder
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 |
Adds essential OData services to the specified IMvcBuilder.
public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddOData (this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, Action<Microsoft.AspNetCore.OData.ODataOptions> setupAction);
static member AddOData : Microsoft.Extensions.DependencyInjection.IMvcBuilder * Action<Microsoft.AspNetCore.OData.ODataOptions> -> Microsoft.Extensions.DependencyInjection.IMvcBuilder
<Extension()>
Public Function AddOData (builder As IMvcBuilder, setupAction As Action(Of ODataOptions)) As IMvcBuilder
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 |