DatabaseDependencies DatabaseDependencies DatabaseDependencies Class

Definition

Service dependencies parameter class for Database

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

Do not construct instances of this class directly from either provider or application code as the constructor signature may change as new dependencies are added. Instead, use this type in your constructor so that an instance will be created and injected automatically by the dependency injection container. To create an instance with some dependent services replaced, first resolve the object from the dependency injection container, then replace selected services using the 'With...' methods. Do not call the constructor at any point in this process.

public sealed class DatabaseDependencies
type DatabaseDependencies = class
Public NotInheritable Class DatabaseDependencies
Inheritance
DatabaseDependenciesDatabaseDependenciesDatabaseDependencies

Constructors

DatabaseDependencies(IQueryCompilationContextFactory) DatabaseDependencies(IQueryCompilationContextFactory) DatabaseDependencies(IQueryCompilationContextFactory)

Creates the service dependencies parameter object for a Database.

Do not call this constructor directly from either provider or application code as it may change as new dependencies are added. Instead, use this type in your constructor so that an instance will be created and injected automatically by the dependency injection container. To create an instance with some dependent services replaced, first resolve the object from the dependency injection container, then replace selected services using the 'With...' methods. Do not call the constructor at any point in this process.

Properties

QueryCompilationContextFactory QueryCompilationContextFactory QueryCompilationContextFactory

Factory for compilation contexts to process LINQ queries.

Methods

With(IQueryCompilationContextFactory) With(IQueryCompilationContextFactory) With(IQueryCompilationContextFactory)

Clones this dependency parameter object with one service replaced.

Extension Methods

AsConcreteMetadataType<TInterface,TConcrete>(TInterface, String) AsConcreteMetadataType<TInterface,TConcrete>(TInterface, String) AsConcreteMetadataType<TInterface,TConcrete>(TInterface, String)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

Applies to