DatabaseProviderServices DatabaseProviderServices Class

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.

Syntax

Declaration

public abstract class DatabaseProviderServices : IDatabaseProviderServicesPublic MustInherit Class DatabaseProviderServices
    Implements IDatabaseProviderServices

Inheritance Hierarchy

  • System.Object
    System.Object
  • DatabaseProviderServices
    DatabaseProviderServices

Inherited Members

ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Constructors summary

Initializes a new instance of the DatabaseProviderServices class.

Properties summary

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.

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

Gets the IDatabaseCreator for the database provider.

Gets the IDatabase for the database provider.

Gets the IEntityQueryableExpressionVisitorFactory for the database provider.

Gets the IEntityQueryModelVisitorFactory for the database provider.

Gets the IExecutionStrategyFactory for the database provider.

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

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

Gets the IModelSource for the database provider.

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

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

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.

Gets the IQueryContextFactory for the database provider.

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.

Gets the service provider to resolve services from.

Gets the IDbContextTransactionManager for the database provider.

Gets the IValueGeneratorCache for the database provider.

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 summary

Resolves a required service from Services.

Constructors

  • DatabaseProviderServices(IServiceProvider)
    DatabaseProviderServices(IServiceProvider)

    Initializes a new instance of the DatabaseProviderServices class.

    protected DatabaseProviderServices(IServiceProvider services)Protected Sub New(services As IServiceProvider)

    Parameters

    • services
      System.IServiceProvider
      System.IServiceProvider

      The service provider to resolve services from.

Properties

  • CompiledQueryCacheKeyGenerator
    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.

    public virtual ICompiledQueryCacheKeyGenerator CompiledQueryCacheKeyGenerator { get; }Public Overridable ReadOnly Property CompiledQueryCacheKeyGenerator As ICompiledQueryCacheKeyGenerator

    Property Value

  • ConventionSetBuilder
    ConventionSetBuilder

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

    public virtual IConventionSetBuilder ConventionSetBuilder { get; }Public Overridable ReadOnly Property ConventionSetBuilder As IConventionSetBuilder

    Property Value

  • Creator
    Creator

    Gets the IDatabaseCreator for the database provider.

    public abstract IDatabaseCreator Creator { get; }Public MustOverride ReadOnly Property Creator As IDatabaseCreator

    Property Value

  • Database
    Database

    Gets the IDatabase for the database provider.

    public abstract IDatabase Database { get; }Public MustOverride ReadOnly Property Database As IDatabase

    Property Value

  • EntityQueryableExpressionVisitorFactory
    EntityQueryableExpressionVisitorFactory

    Gets the IEntityQueryableExpressionVisitorFactory for the database provider.

    public abstract IEntityQueryableExpressionVisitorFactory EntityQueryableExpressionVisitorFactory { get; }Public MustOverride ReadOnly Property EntityQueryableExpressionVisitorFactory As IEntityQueryableExpressionVisitorFactory

    Property Value

  • EntityQueryModelVisitorFactory
    EntityQueryModelVisitorFactory

    Gets the IEntityQueryModelVisitorFactory for the database provider.

    public abstract IEntityQueryModelVisitorFactory EntityQueryModelVisitorFactory { get; }Public MustOverride ReadOnly Property EntityQueryModelVisitorFactory As IEntityQueryModelVisitorFactory

    Property Value

  • ExecutionStrategyFactory
    ExecutionStrategyFactory

    Gets the IExecutionStrategyFactory for the database provider.

    public virtual IExecutionStrategyFactory ExecutionStrategyFactory { get; }Public Overridable ReadOnly Property ExecutionStrategyFactory As IExecutionStrategyFactory

    Property Value

  • ExpressionPrinter
    ExpressionPrinter

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

    public virtual IExpressionPrinter ExpressionPrinter { get; }Public Overridable ReadOnly Property ExpressionPrinter As IExpressionPrinter

    Property Value

  • InvariantName
    InvariantName

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

    public abstract string InvariantName { get; }Public MustOverride ReadOnly Property InvariantName As String

    Property Value

    • System.String
      System.String
  • ModelSource
    ModelSource

    Gets the IModelSource for the database provider.

    public abstract IModelSource ModelSource { get; }Public MustOverride ReadOnly Property ModelSource As IModelSource

    Property Value

  • ModelValidator
    ModelValidator

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

    public virtual IModelValidator ModelValidator { get; }Public Overridable ReadOnly Property ModelValidator As IModelValidator

    Property Value

  • ProjectionExpressionVisitorFactory
    ProjectionExpressionVisitorFactory

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

    public virtual IProjectionExpressionVisitorFactory ProjectionExpressionVisitorFactory { get; }Public Overridable ReadOnly Property ProjectionExpressionVisitorFactory As IProjectionExpressionVisitorFactory

    Property Value

  • QueryCompilationContextFactory
    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.

    public virtual IQueryCompilationContextFactory QueryCompilationContextFactory { get; }Public Overridable ReadOnly Property QueryCompilationContextFactory As IQueryCompilationContextFactory

    Property Value

  • QueryContextFactory
    QueryContextFactory

    Gets the IQueryContextFactory for the database provider.

    public abstract IQueryContextFactory QueryContextFactory { get; }Public MustOverride ReadOnly Property QueryContextFactory As IQueryContextFactory

    Property Value

  • ResultOperatorHandler
    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.

    public virtual IResultOperatorHandler ResultOperatorHandler { get; }Public Overridable ReadOnly Property ResultOperatorHandler As IResultOperatorHandler

    Property Value

  • Services
    Services

    Gets the service provider to resolve services from.

    protected virtual IServiceProvider Services { get; }Protected Overridable ReadOnly Property Services As IServiceProvider

    Property Value

    • System.IServiceProvider
      System.IServiceProvider
  • TransactionManager
    TransactionManager

    Gets the IDbContextTransactionManager for the database provider.

    public abstract IDbContextTransactionManager TransactionManager { get; }Public MustOverride ReadOnly Property TransactionManager As IDbContextTransactionManager

    Property Value

  • ValueGeneratorCache
    ValueGeneratorCache

    Gets the IValueGeneratorCache for the database provider.

    public abstract IValueGeneratorCache ValueGeneratorCache { get; }Public MustOverride ReadOnly Property ValueGeneratorCache As IValueGeneratorCache

    Property Value

  • ValueGeneratorSelector
    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.

    public virtual IValueGeneratorSelector ValueGeneratorSelector { get; }Public Overridable ReadOnly Property ValueGeneratorSelector As IValueGeneratorSelector

    Property Value

Methods

  • GetService<TService>()
    GetService(Of TService)()

    Resolves a required service from Services.

    protected virtual TService GetService<TService>()Protected Overridable Function GetService(Of TService) As TService

    Returns

    • TService
      TService

      The resolved service.

Details

Assembly

Microsoft.EntityFrameworkCore.dll