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
{{ message }}
Repository navigation
Startup configuration invalid on the page Sample: Build web APIs with OData support using ASP.NET Core #261
// 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.
Activity
anstein-msft commentedon Dec 22, 2022
The code for at least .NET 6 should read something like:
services.AddControllers().AddOData()