DatabaseProvider<TProviderServices,TOptionsExtension> Class

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 class DatabaseProvider<TProviderServices,TOptionsExtension> : Microsoft.EntityFrameworkCore.Storage.IDatabaseProvider where TProviderServices : class, IDatabaseProviderServices where TOptionsExtension : class, IDbContextOptionsExtension
type DatabaseProvider<'ProviderServices, 'OptionsExtension (requires 'ProviderServices : null and 'ProviderServices :> IDatabaseProviderServices and 'OptionsExtension : null and 'OptionsExtension :> IDbContextOptionsExtension)> = class
    interface IDatabaseProvider
Public Class DatabaseProvider(Of TProviderServices, TOptionsExtension)
Implements IDatabaseProvider

Type Parameters

TProviderServices

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

TOptionsExtension

The type of options that the database provider will add to Extensions to identify that is has been selected (and to store its database specific settings).

Inheritance
DatabaseProvider<TProviderServices,TOptionsExtension>
Implements

Constructors

DatabaseProvider<TProviderServices,TOptionsExtension>()

Methods

GetProviderServices(IServiceProvider)

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

IsConfigured(IDbContextOptions)

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

Applies to