private static void MapOdataRoutes(HttpConfiguration config) { string routeName = "odata"; System.Web.OData.Batch.ODataBatchHandler odataBatchHandler = new System.Web.OData.Batch.DefaultODataBatchHandler(GlobalConfiguration.DefaultServer); ODataRoute route = config.MapODataServiceRoute(routeName, routeName, model: ModelConfig.GetModel(), batchHandler: odataBatchHandler); }