IDatabaseProvider IDatabaseProvider Interface

Definition

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.

public interface IDatabaseProvider
Public Interface IDatabaseProvider

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

The services for this database provider.

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
options
IDbContextOptions IDbContextOptions

The options for the context.

Returns
System.Boolean System.Boolean

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