ODataApplicationBuilderExtensions.UseOData Method
Definition
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.
Overloads
UseOData(IApplicationBuilder, IEdmModel) |
Use OData route with default route name and route prefix. |
UseOData(IApplicationBuilder, String, String, IEdmModel) |
Use OData route with given route name and route prefix. |
UseOData(IApplicationBuilder, IEdmModel)
Use OData route with default route name and route prefix.
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseOData (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.OData.Edm.IEdmModel model);
static member UseOData : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.OData.Edm.IEdmModel -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseOData (app As IApplicationBuilder, model As IEdmModel) As IApplicationBuilder
Parameters
The IApplicationBuilder to use.
Returns
The IApplicationBuilder.
Applies to
UseOData(IApplicationBuilder, String, String, IEdmModel)
Use OData route with given route name and route prefix.
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseOData (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, string routeName, string routePrefix, Microsoft.OData.Edm.IEdmModel model);
static member UseOData : Microsoft.AspNetCore.Builder.IApplicationBuilder * string * string * Microsoft.OData.Edm.IEdmModel -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseOData (app As IApplicationBuilder, routeName As String, routePrefix As String, model As IEdmModel) As IApplicationBuilder
Parameters
The IApplicationBuilder to use.
- routeName
- String
The given OData route name.
- routePrefix
- String
The given OData route prefix.
Returns
The IApplicationBuilder.