DatabaseProviderServices 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 : IDatabaseProviderServices
Public MustInherit Class DatabaseProviderServices
    Implements IDatabaseProviderServices
Inheritance
System.ObjectSystem.Object
DatabaseProviderServicesDatabaseProviderServices
Implements

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

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

Creator Creator

Gets the IDatabaseCreator for the database provider.

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

Database Database

Gets the IDatabase for the database provider.

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

EntityQueryableExpressionVisitorFactory EntityQueryableExpressionVisitorFactory

Gets the IEntityQueryableExpressionVisitorFactory for the database provider.

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

EntityQueryModelVisitorFactory EntityQueryModelVisitorFactory

Gets the IEntityQueryModelVisitorFactory for the database provider.

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

ExecutionStrategyFactory ExecutionStrategyFactory

Gets the IExecutionStrategyFactory for the database provider.

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

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

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

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

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

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

QueryContextFactory QueryContextFactory

Gets the IQueryContextFactory for the database provider.

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

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

Services Services

Gets the service provider to resolve services from.

protected virtual IServiceProvider Services { get; }
Protected Overridable ReadOnly Property Services As IServiceProvider
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

ValueGeneratorCache ValueGeneratorCache

Gets the IValueGeneratorCache for the database provider.

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

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

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

GetService() GetService(Of TService)()

Resolves a required service from Services.

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

The service to be resolved.

Returns
TService TService

The resolved service.

GetType() GetType()

Inherited from System.Object

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

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

Inherited from System.Object

ToString() ToString()

Inherited from System.Object