IDbContextOptionsExtension
IDbContextOptionsExtension
Interface
Definition
Interface for extensions that are stored in Extensions.
This interface is typically used by database providers (and other extensions). It is generally not used in application code.
public interface IDbContextOptionsExtension
Public Interface IDbContextOptionsExtension
Methods
ApplyServices(IServiceCollection) ApplyServices(IServiceCollection)
Adds the services required to make the selected options work. This is used when there is no external System.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.
void ApplyServices(IServiceCollection services)
Sub ApplyServices(services As IServiceCollection)
Parameters
- services
- IServiceCollection IServiceCollection
The collection to add services to.