QueryContextDependencies Constructors

Definition

Overloads

QueryContextDependencies(ICurrentDbContext, IConcurrencyDetector)

Creates the service dependencies parameter object for a QueryContext.

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.

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.

QueryContextDependencies(ICurrentDbContext, IConcurrencyDetector, IDiagnosticsLogger<DbLoggerCategory.Database.Command>, IDiagnosticsLogger<DbLoggerCategory.Query>)

Creates the service dependencies parameter object for a QueryContext.

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.

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

QueryContextDependencies(ICurrentDbContext, IExecutionStrategyFactory, IConcurrencyDetector, IDiagnosticsLogger<DbLoggerCategory.Database.Command>, IDiagnosticsLogger<DbLoggerCategory.Query>)

Creates the service dependencies parameter object for a QueryContext.

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.

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

QueryContextDependencies(ICurrentDbContext, IExecutionStrategy, IConcurrencyDetector, IExceptionDetector, IDiagnosticsLogger<DbLoggerCategory.Database.Command>, IDiagnosticsLogger<DbLoggerCategory.Query>)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

QueryContextDependencies(ICurrentDbContext, IExecutionStrategy, IExecutionStrategyFactory, IConcurrencyDetector, IDiagnosticsLogger<DbLoggerCategory.Database.Command>, IDiagnosticsLogger<DbLoggerCategory.Query>)

Creates the service dependencies parameter object for a QueryContext.

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.

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

QueryContextDependencies(ICurrentDbContext, IConcurrencyDetector)

Creates the service dependencies parameter object for a QueryContext.

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.

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.

public QueryContextDependencies (Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext currentContext, Microsoft.EntityFrameworkCore.Internal.IConcurrencyDetector concurrencyDetector);
new Microsoft.EntityFrameworkCore.Query.QueryContextDependencies : Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext * Microsoft.EntityFrameworkCore.Internal.IConcurrencyDetector -> Microsoft.EntityFrameworkCore.Query.QueryContextDependencies
Public Sub New (currentContext As ICurrentDbContext, concurrencyDetector As IConcurrencyDetector)

Parameters

currentContext
Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext
concurrencyDetector
Microsoft.EntityFrameworkCore.Internal.IConcurrencyDetector

Applies to

QueryContextDependencies(ICurrentDbContext, IConcurrencyDetector, IDiagnosticsLogger<DbLoggerCategory.Database.Command>, IDiagnosticsLogger<DbLoggerCategory.Query>)

Creates the service dependencies parameter object for a QueryContext.

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.

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public QueryContextDependencies (Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext currentContext, Microsoft.EntityFrameworkCore.Infrastructure.IConcurrencyDetector concurrencyDetector, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> commandLogger, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> queryLogger);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.Query.QueryContextDependencies : Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext * Microsoft.EntityFrameworkCore.Infrastructure.IConcurrencyDetector * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> -> Microsoft.EntityFrameworkCore.Query.QueryContextDependencies
Public Sub New (currentContext As ICurrentDbContext, concurrencyDetector As IConcurrencyDetector, commandLogger As IDiagnosticsLogger(Of DbLoggerCategory.Database.Command), queryLogger As IDiagnosticsLogger(Of DbLoggerCategory.Query))

Parameters

currentContext
ICurrentDbContext
concurrencyDetector
IConcurrencyDetector
Attributes

Applies to

QueryContextDependencies(ICurrentDbContext, IExecutionStrategyFactory, IConcurrencyDetector, IDiagnosticsLogger<DbLoggerCategory.Database.Command>, IDiagnosticsLogger<DbLoggerCategory.Query>)

Creates the service dependencies parameter object for a QueryContext.

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.

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public QueryContextDependencies (Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext currentContext, Microsoft.EntityFrameworkCore.Storage.IExecutionStrategyFactory executionStrategyFactory, Microsoft.EntityFrameworkCore.Infrastructure.IConcurrencyDetector concurrencyDetector, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> commandLogger, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> queryLogger);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.Query.QueryContextDependencies : Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext * Microsoft.EntityFrameworkCore.Storage.IExecutionStrategyFactory * Microsoft.EntityFrameworkCore.Infrastructure.IConcurrencyDetector * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> -> Microsoft.EntityFrameworkCore.Query.QueryContextDependencies
Public Sub New (currentContext As ICurrentDbContext, executionStrategyFactory As IExecutionStrategyFactory, concurrencyDetector As IConcurrencyDetector, commandLogger As IDiagnosticsLogger(Of DbLoggerCategory.Database.Command), queryLogger As IDiagnosticsLogger(Of DbLoggerCategory.Query))

Parameters

currentContext
ICurrentDbContext
executionStrategyFactory
IExecutionStrategyFactory
concurrencyDetector
IConcurrencyDetector
Attributes

Applies to

QueryContextDependencies(ICurrentDbContext, IExecutionStrategy, IConcurrencyDetector, IExceptionDetector, IDiagnosticsLogger<DbLoggerCategory.Database.Command>, IDiagnosticsLogger<DbLoggerCategory.Query>)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public QueryContextDependencies (Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext currentContext, Microsoft.EntityFrameworkCore.Storage.IExecutionStrategy executionStrategy, Microsoft.EntityFrameworkCore.Infrastructure.IConcurrencyDetector concurrencyDetector, Microsoft.EntityFrameworkCore.Storage.IExceptionDetector exceptionDetector, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> commandLogger, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> queryLogger);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.Query.QueryContextDependencies : Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext * Microsoft.EntityFrameworkCore.Storage.IExecutionStrategy * Microsoft.EntityFrameworkCore.Infrastructure.IConcurrencyDetector * Microsoft.EntityFrameworkCore.Storage.IExceptionDetector * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> -> Microsoft.EntityFrameworkCore.Query.QueryContextDependencies
Public Sub New (currentContext As ICurrentDbContext, executionStrategy As IExecutionStrategy, concurrencyDetector As IConcurrencyDetector, exceptionDetector As IExceptionDetector, commandLogger As IDiagnosticsLogger(Of DbLoggerCategory.Database.Command), queryLogger As IDiagnosticsLogger(Of DbLoggerCategory.Query))

Parameters

currentContext
ICurrentDbContext
executionStrategy
IExecutionStrategy
concurrencyDetector
IConcurrencyDetector
exceptionDetector
IExceptionDetector
Attributes

Remarks

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 C# 'with' operator. Do not call the constructor at any point in this process.

Applies to

QueryContextDependencies(ICurrentDbContext, IExecutionStrategy, IExecutionStrategyFactory, IConcurrencyDetector, IDiagnosticsLogger<DbLoggerCategory.Database.Command>, IDiagnosticsLogger<DbLoggerCategory.Query>)

Creates the service dependencies parameter object for a QueryContext.

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.

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public QueryContextDependencies (Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext currentContext, Microsoft.EntityFrameworkCore.Storage.IExecutionStrategy executionStrategy, Microsoft.EntityFrameworkCore.Storage.IExecutionStrategyFactory executionStrategyFactory, Microsoft.EntityFrameworkCore.Infrastructure.IConcurrencyDetector concurrencyDetector, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> commandLogger, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> queryLogger);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.Query.QueryContextDependencies : Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext * Microsoft.EntityFrameworkCore.Storage.IExecutionStrategy * Microsoft.EntityFrameworkCore.Storage.IExecutionStrategyFactory * Microsoft.EntityFrameworkCore.Infrastructure.IConcurrencyDetector * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> -> Microsoft.EntityFrameworkCore.Query.QueryContextDependencies
Public Sub New (currentContext As ICurrentDbContext, executionStrategy As IExecutionStrategy, executionStrategyFactory As IExecutionStrategyFactory, concurrencyDetector As IConcurrencyDetector, commandLogger As IDiagnosticsLogger(Of DbLoggerCategory.Database.Command), queryLogger As IDiagnosticsLogger(Of DbLoggerCategory.Query))

Parameters

currentContext
ICurrentDbContext
executionStrategy
IExecutionStrategy
executionStrategyFactory
IExecutionStrategyFactory
concurrencyDetector
IConcurrencyDetector
Attributes

Applies to