protected static void UpdateConfigure(EndpointRouteConfiguration configuration) { // Add your custom routes configuration.AddControllers(typeof(EpCustomersController)); configuration.MaxTop(2).Expand().Select().OrderBy().Filter(); configuration.MapODataRoute("odata", "odata", EndpointModelGenerator.GetConventionalEdmModel()); }
protected static void UpdateConfigure(EndpointRouteConfiguration configuration) { // Add your custom routes configuration.AddControllers(typeof(EpCustomersController)); configuration.MaxTop(2).Expand().Select().OrderBy().Filter(); EdmModel = EndpointModelGenerator.GetConventionalEdmModel(); configuration.MapODataRoute("odata", "odata", EdmModel, new DefaultODataPathHandler(), ODataRoutingConventions.CreateDefault(), new DefaultODataBatchHandler()); }