示例#1
0
        protected override void UpdateConfiguration(WebRouteConfiguration configuration)
        {
            ODataModelBuilder builder = configuration.CreateConventionModelBuilder();

            configuration.MapODataServiceRoute(
                "batch",
                "DefaultBatch",
                GetEdmModel(builder),
                new DefaultODataPathHandler(),
                ODataRoutingConventions.CreateDefault(),
                configuration.CreateDefaultODataBatchHandler());

            configuration.EnableContinueOnErrorHeader();
        }