Share via


DatabaseProviderServices Class

Definition

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

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

public abstract class DatabaseProviderServices : Microsoft.EntityFrameworkCore.Storage.IDatabaseProviderServices
type DatabaseProviderServices = class
    interface IDatabaseProviderServices
Public MustInherit Class DatabaseProviderServices
Implements IDatabaseProviderServices
Inheritance
DatabaseProviderServices
Derived
Implements

Constructors

DatabaseProviderServices(IServiceProvider)

Initializes a new instance of the DatabaseProviderServices class.

Properties

CompiledQueryCacheKeyGenerator

Gets the ICompiledQueryCacheKeyGenerator for the database provider. By default, EF will register a default implementation (CompiledQueryCacheKeyGenerator) which provides basic functionality but can be overridden if needed.

ConventionSetBuilder

The convention set builder for the database provider. By default this returns null, meaning the default Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.CoreConventionSetBuilder will be used.

Creator

Gets the IDatabaseCreator for the database provider.

Database

Gets the IDatabase for the database provider.

EntityQueryableExpressionVisitorFactory

Gets the IEntityQueryableExpressionVisitorFactory for the database provider.

EntityQueryModelVisitorFactory

Gets the IEntityQueryModelVisitorFactory for the database provider.

ExecutionStrategyFactory

Gets the IExecutionStrategyFactory for the database provider.

ExpressionPrinter

Gets the Microsoft.EntityFrameworkCore.Query.Internal.IExpressionPrinter for the database provider. By default, EF will register a default implementation (Microsoft.EntityFrameworkCore.Query.Internal.ExpressionPrinter) which provides basic functionality but can be overridden if needed.

InvariantName

The unique name used to identify the database provider. This should be the same as the NuGet package name for the providers runtime.

ModelSource

Gets the IModelSource for the database provider.

ModelValidator

Gets the Microsoft.EntityFrameworkCore.Internal.IModelValidator for the database provider. By default, EF will register a default implementation (Microsoft.EntityFrameworkCore.Internal.LoggingModelValidator) which provides basic functionality but can be overridden if needed.

ProjectionExpressionVisitorFactory

Gets the IProjectionExpressionVisitorFactory for the database provider. By default, EF will register a default implementation (Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.Internal.ProjectionExpressionVisitorFactory) which provides basic functionality but can be overridden if needed.

QueryCompilationContextFactory

Gets the IQueryCompilationContextFactory for the database provider. By default, EF will register a default implementation (ValueGeneratorSelector) which provides basic functionality but can be overridden if needed.

QueryContextFactory

Gets the IQueryContextFactory for the database provider.

ResultOperatorHandler

Gets the IResultOperatorHandler for the database provider. By default, EF will register a default implementation (ResultOperatorHandler) which provides basic functionality but can be overridden if needed.

Services

Gets the service provider to resolve services from.

TransactionManager

Gets the IDbContextTransactionManager for the database provider.

ValueGeneratorCache

Gets the IValueGeneratorCache for the database provider.

ValueGeneratorSelector

Gets the IValueGeneratorSelector for the database provider. By default, EF will register a default implementation (ValueGeneratorSelector) which provides basic functionality but can be overridden if needed.

Methods

GetService<TService>()

Resolves a required service from Services.

Applies to