ODataRoutingConventions.CreateDefaultWithAttributeRouting Method (HttpConfiguration, IEdmModel)
Creates a mutable list of the default OData routing conventions with attribute routing enabled.
Namespace: System.Web.OData.Routing.Conventions
Assembly: System.Web.OData (in System.Web.OData.dll)
Syntax
public static IList<IODataRoutingConvention> CreateDefaultWithAttributeRouting(
HttpConfiguration configuration,
IEdmModel model
)
public:
static IList<IODataRoutingConvention^>^ CreateDefaultWithAttributeRouting(
HttpConfiguration^ configuration,
IEdmModel^ model
)
static member CreateDefaultWithAttributeRouting :
configuration:HttpConfiguration *
model:IEdmModel -> IList<IODataRoutingConvention>
Public Shared Function CreateDefaultWithAttributeRouting (
configuration As HttpConfiguration,
model As IEdmModel
) As IList(Of IODataRoutingConvention)
Parameters
configuration
Type: System.Web.Http.HttpConfigurationThe server configuration.
model
Type: Microsoft.OData.Edm.IEdmModelThe EDM model to use for parsing OData paths.
Return Value
Type: System.Collections.Generic.IList<IODataRoutingConvention>
A mutable list of the default OData routing conventions.
See Also
ODataRoutingConventions Class
System.Web.OData.Routing.Conventions Namespace
Return to top