ODataServiceCollectionExtensions.AddOData(IServiceCollection) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds essential OData services to the specified IServiceCollection.
public static Microsoft.AspNet.OData.Interfaces.IODataBuilder AddOData (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddOData : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.AspNet.OData.Interfaces.IODataBuilder
<Extension()>
Public Function AddOData (services As IServiceCollection) As IODataBuilder
Parameters
- services
- IServiceCollection
The IServiceCollection to add services to.
Returns
An IODataBuilder that can be used to further configure the OData services.