You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// requires using Microsoft.AspNet.OData.Extensions;
services.AddOData();
The using statement looks like it should be Microsoft.AspNetCore.OData.Extensions instead, and there is no extension method for IServiceCollection called AddOData().
I'm running a newly-created .NET 6 web API following the Todo example linked in the doc page, and I installed Microsoft.AspNetCore.OData version 8.0.11.
The text was updated successfully, but these errors were encountered:
On the page https://docs.microsoft.com/en-us/odata/webapi/first-odata-api (md file: https://github.com/MicrosoftDocs/OData-docs/blob/main/Odata-docs/webapi/first-odata-api.md), The section titled Register OData has these lines of code:
The
using
statement looks like it should beMicrosoft.AspNetCore.OData.Extensions
instead, and there is no extension method forIServiceCollection
calledAddOData()
.I'm running a newly-created .NET 6 web API following the Todo example linked in the doc page, and I installed Microsoft.AspNetCore.OData version 8.0.11.
The text was updated successfully, but these errors were encountered: