config.MapODataServiceRoute error

后端 未结 6 2470
滥情空心
滥情空心 2021-02-19 03:38

I am currently following this guide -> Link to asp.net website

As the guide says I added all the necessary packages via the nuget console and added the necessary usings

6条回答
  •  囚心锁ツ
    2021-02-19 04:28

    MapODataServiceRoute is available in Routes Collection, hence below code will do

    config.Routes.MapODataServiceRoute(
    "odata",
     null, 
    GetEdmModel(), 
    new DefaultODataBatchHandler(GlobalConfiguration.DefaultServer));
    

提交回复
热议问题