IDatabaseProvider IDatabaseProvider Interface

The primary point where a database provider can tell EF that it has been selected for the current context and provide the services required for it to function.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

Syntax

Declaration

public interface IDatabaseProviderPublic Interface IDatabaseProvider

Methods summary

Gets the base set of services required by EF for the database provider to function.

Gets a value indicating whether this database provider has been selected for a given context.

Methods

  • GetProviderServices(IServiceProvider)
    GetProviderServices(IServiceProvider)

    Gets the base set of services required by EF for the database provider to function.

    IDatabaseProviderServices GetProviderServices(IServiceProvider serviceProvider)Function GetProviderServices(serviceProvider As IServiceProvider) As IDatabaseProviderServices

    Parameters

    • serviceProvider
      System.IServiceProvider
      System.IServiceProvider

      The service provider to resolve services from.

    Returns

  • IsConfigured(IDbContextOptions)
    IsConfigured(IDbContextOptions)

    Gets a value indicating whether this database provider has been selected for a given context.

    bool IsConfigured(IDbContextOptions options)Function IsConfigured(options As IDbContextOptions) As Boolean

    Parameters

    Returns

    • System.Boolean
      System.Boolean

      True if the database provider has been selected, otherwise false.

Details

Assembly

Microsoft.EntityFrameworkCore.dll