示例#1
0
        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());
        }
示例#2
0
        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());
        }