private static void Configuration(IAppBuilder appBuilder, Type targetController) { var config = appBuilder.GetStandardHttpConfig(targetController); config.MapODataServiceRoute("odata", "odata", ODataModels.GetModel()); config.EnsureInitialized(); }
public static void Configuration(IAppBuilder builder) { var config = new HttpConfiguration(); config.IncludeErrorDetailPolicy = IncludeErrorDetailPolicy.Always; config.MapODataServiceRoute("OData", "odata", ODataModels.GetModel()); builder.UseWebApi(config); }