@@ -32,12 +32,18 @@ public static void Register(HttpConfiguration config)
3232 conventions . Insert ( 0 , new CompositeKeyRoutingConvention ( ) ) ;
3333
3434 // Translate all requests to use V2FeedController instead of PackagesController
35- conventions = conventions . Select ( c => new ControllerAliasingODataRoutingConvention ( c , "Packages" , "ODataV1Feed" ) ) . Cast < IODataRoutingConvention > ( ) . ToList ( ) ;
35+ conventions =
36+ conventions . Select ( c => new ControllerAliasingODataRoutingConvention ( c , "Packages" , "ODataV1Feed" ) )
37+ . Cast < IODataRoutingConvention > ( )
38+ . ToList ( ) ;
3639
3740 // Add OData routes
38- config . Routes . MapODataServiceRoute ( "api-v1-odata1" , "api/v1/FeedService.svc" , model , new CountODataPathHandler ( ) , conventions , new DefaultODataBatchHandler ( GlobalConfiguration . DefaultServer ) ) ;
39- config . Routes . MapODataServiceRoute ( "api-v1-odata2" , "api/v1" , model , new CountODataPathHandler ( ) , conventions , new DefaultODataBatchHandler ( GlobalConfiguration . DefaultServer ) ) ;
40- config . Routes . MapODataServiceRoute ( "api-v1-odata3" , "v1/FeedService.svc" , model , new CountODataPathHandler ( ) , conventions , new DefaultODataBatchHandler ( GlobalConfiguration . DefaultServer ) ) ;
41+ config . Routes . MapODataServiceRoute ( "api-v1-odata1" , "api/v1/FeedService.svc" , model ,
42+ new CountODataPathHandler ( ) , conventions , new DefaultODataBatchHandler ( GlobalConfiguration . DefaultServer ) ) ;
43+ config . Routes . MapODataServiceRoute ( "api-v1-odata2" , "api/v1" , model ,
44+ new CountODataPathHandler ( ) , conventions , new DefaultODataBatchHandler ( GlobalConfiguration . DefaultServer ) ) ;
45+ config . Routes . MapODataServiceRoute ( "api-v1-odata3" , "v1/FeedService.svc" , model ,
46+ new CountODataPathHandler ( ) , conventions , new DefaultODataBatchHandler ( GlobalConfiguration . DefaultServer ) ) ;
4147 }
4248
4349 public static IEdmModel GetEdmModel ( )
@@ -65,7 +71,7 @@ public static IEdmModel GetEdmModel()
6571 var model = builder . GetEdmModel ( ) ;
6672 model . SetEdmVersion ( new Version ( 1 , 0 ) ) ;
6773 model . SetEdmxVersion ( new Version ( 1 , 0 ) ) ;
68- model . SetHasDefaultStream ( model . FindDeclaredType ( typeof ( V1FeedPackage ) . FullName ) as IEdmEntityType , hasStream : true ) ;
74+ model . SetHasDefaultStream ( model . FindDeclaredType ( typeof ( V1FeedPackage ) . FullName ) as IEdmEntityType , true ) ;
6975
7076 return model ;
7177 }
0 commit comments