// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseOData(ODataModels.GetModel()); }
public static void Configuration(IAppBuilder builder) { HttpConfiguration config = new HttpConfiguration(); config.IncludeErrorDetailPolicy = IncludeErrorDetailPolicy.Always; config.MapODataServiceRoute(routeName: "OData", routePrefix: "odata", model: ODataModels.GetModel()); builder.UseWebApi(config); }
public static void Configuration(IAppBuilder builder) { HttpConfiguration config = new HttpConfiguration(); config.IncludeErrorDetailPolicy = IncludeErrorDetailPolicy.Always; config.Select().Expand().Filter().OrderBy().MaxTop(100).Count(); config.MapODataServiceRoute(routeName: "OData", routePrefix: "odata", model: ODataModels.GetModel()); builder.UseWebApi(config); }