IDbContextOptionsExtension IDbContextOptionsExtension Interface

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.

Syntax

Declaration

public interface IDbContextOptionsExtensionPublic Interface IDbContextOptionsExtension

Methods summary

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.

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.

Details

Assembly

Microsoft.EntityFrameworkCore.dll