Class EntitySetRoutingConvention
An implementation of IODataRoutingConvention that handles entity sets.
public class EntitySetRoutingConvention : IODataRoutingConvention
- Inheritance
-
EntitySetRoutingConvention
- Implements
- Derived
- Inherited Members
Constructors
EntitySetRoutingConvention()
public EntitySetRoutingConvention()
Methods
SelectAction(ODataPath, HttpControllerContext, ILookup<string, HttpActionDescriptor>)
Selects the action for OData requests.
public virtual string SelectAction(ODataPath odataPath, HttpControllerContext controllerContext, ILookup<string, HttpActionDescriptor> actionMap)
Parameters
odataPath
ODataPathThe OData path.
controllerContext
HttpControllerContextThe controller context.
actionMap
ILookup<string, HttpActionDescriptor>The action map.
Returns
- string
null if the request isn't handled by this convention; otherwise, the name of the selected action
SelectController(ODataPath, HttpRequestMessage)
Selects the controller for OData requests.
public string SelectController(ODataPath odataPath, HttpRequestMessage request)
Parameters
odataPath
ODataPathThe OData path.
request
HttpRequestMessageThe request.
Returns
- string
null if the request isn't handled by this convention; otherwise, the name of the selected controller