System.Collections.Generic MapODataServiceRoute is a class in the Microsoft.AspNet.OData package that represents a route for the OData service. This route maps the OData requests to the specified controller and action methods. It also handles the query processing based on the OData query options.
Example 1: Configure OData route in WebApiConfig.cs
using System.Web.Http; using System.Web.OData.Builder; using System.Web.OData.Extensions; using Microsoft.AspNet.OData.Routing;
In Example 1, a default OData route is configured with an entity set, entity type, and two function actions. In Example 2, an OData route with a version number is customized with the IsAbsoluteUrl and IsUnresolved properties.
C# (CSharp) System.Collections.Generic.MapODataServiceRoute - 30 examples found. These are the top rated real world C# (CSharp) examples of System.Collections.Generic.MapODataServiceRoute extracted from open source projects. You can rate examples to help us improve the quality of examples.