config.MapODataServiceRoute error

后端 未结 6 2505
滥情空心
滥情空心 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:29

    MapODataServiceRoute is extension method. So to use it a reference to its namespace is required. For me it was fixed by referencing:

    using System.Web.Http.OData.Extensions;
    

提交回复
热议问题