CoreOptionsExtension.ApplyServices(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 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
Entity Framework