DatabaseProvider<TProviderServices, TOptionsExtension> DatabaseProvider(Of 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> : IDatabaseProvider where TProviderServices : class, IDatabaseProviderServices where TOptionsExtension : class, IDbContextOptionsExtension
Public Class DatabaseProvider(Of TProviderServices As {Class, IDatabaseProviderServices}, TOptionsExtension As {Class, IDbContextOptionsExtension})
    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
System.ObjectSystem.Object
DatabaseProvider<TProviderServices, TOptionsExtension>DatabaseProvider(Of TProviderServices, TOptionsExtension)
Implements

Methods

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

GetHashCode() GetHashCode()

Inherited from System.Object

GetProviderServices(IServiceProvider) GetProviderServices(IServiceProvider)

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

public virtual IDatabaseProviderServices GetProviderServices(IServiceProvider serviceProvider)
Public Overridable 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.

GetType() GetType()

Inherited from System.Object

IsConfigured(IDbContextOptions) IsConfigured(IDbContextOptions)

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

public virtual bool IsConfigured(IDbContextOptions options)
Public Overridable 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.

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

ToString() ToString()

Inherited from System.Object