Share via


CoreOptionsExtension.ApplyServices(IServiceCollection) Method

Definition

Adds the services required to make the selected options work. This is used when there is no external IServiceProvider and EF is maintaining its own service provider internally. This allows database providers (and other extensions) to register their required services when EF is creating an service provider.

public virtual bool ApplyServices (Microsoft.Extensions.DependencyInjection.IServiceCollection services);
public virtual void ApplyServices (Microsoft.Extensions.DependencyInjection.IServiceCollection services);
abstract member ApplyServices : Microsoft.Extensions.DependencyInjection.IServiceCollection -> bool
override this.ApplyServices : Microsoft.Extensions.DependencyInjection.IServiceCollection -> bool
abstract member ApplyServices : Microsoft.Extensions.DependencyInjection.IServiceCollection -> unit
override this.ApplyServices : Microsoft.Extensions.DependencyInjection.IServiceCollection -> unit
Public Overridable Function ApplyServices (services As IServiceCollection) As Boolean
Public Overridable Sub ApplyServices (services As IServiceCollection)

Parameters

services
IServiceCollection

The collection to add services to.

Returns

False since no database provider is registered.

Implements

Applies to