QueryContextDependencies.With Method

Definition

Overloads

With(IDiagnosticsLogger<DbLoggerCategory.Database.Command>)

Clones this dependency parameter object with one service replaced.

With(IDiagnosticsLogger<DbLoggerCategory.Query>)

Clones this dependency parameter object with one service replaced.

With(IConcurrencyDetector)

Clones this dependency parameter object with one service replaced.

With(ICurrentDbContext)

Clones this dependency parameter object with one service replaced.

With(IConcurrencyDetector)

Clones this dependency parameter object with one service replaced.

With(ICurrentDbContext)

Clones this dependency parameter object with one service replaced.

With(IExecutionStrategyFactory)

Clones this dependency parameter object with one service replaced.

With(IDiagnosticsLogger<DbLoggerCategory.Database.Command>)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Query.QueryContextDependencies With (Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> commandLogger);
member this.With : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> -> Microsoft.EntityFrameworkCore.Query.QueryContextDependencies
Public Function With (commandLogger As IDiagnosticsLogger(Of DbLoggerCategory.Database.Command)) As QueryContextDependencies

Parameters

commandLogger
IDiagnosticsLogger<DbLoggerCategory.Database.Command>

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IDiagnosticsLogger<DbLoggerCategory.Query>)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Query.QueryContextDependencies With (Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> queryLogger);
member this.With : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> -> Microsoft.EntityFrameworkCore.Query.QueryContextDependencies
Public Function With (queryLogger As IDiagnosticsLogger(Of DbLoggerCategory.Query)) As QueryContextDependencies

Parameters

queryLogger
IDiagnosticsLogger<DbLoggerCategory.Query>

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IConcurrencyDetector)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Query.QueryContextDependencies With (Microsoft.EntityFrameworkCore.Infrastructure.IConcurrencyDetector concurrencyDetector);
member this.With : Microsoft.EntityFrameworkCore.Infrastructure.IConcurrencyDetector -> Microsoft.EntityFrameworkCore.Query.QueryContextDependencies
Public Function With (concurrencyDetector As IConcurrencyDetector) As QueryContextDependencies

Parameters

concurrencyDetector
IConcurrencyDetector

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(ICurrentDbContext)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Query.QueryContextDependencies With (Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext currentContext);
member this.With : Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext -> Microsoft.EntityFrameworkCore.Query.QueryContextDependencies
Public Function With (currentContext As ICurrentDbContext) As QueryContextDependencies

Parameters

currentContext
ICurrentDbContext

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IConcurrencyDetector)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Query.QueryContextDependencies With (Microsoft.EntityFrameworkCore.Internal.IConcurrencyDetector concurrencyDetector);
member this.With : Microsoft.EntityFrameworkCore.Internal.IConcurrencyDetector -> Microsoft.EntityFrameworkCore.Query.QueryContextDependencies
Public Function With (concurrencyDetector As IConcurrencyDetector) As QueryContextDependencies

Parameters

concurrencyDetector
Microsoft.EntityFrameworkCore.Internal.IConcurrencyDetector

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(ICurrentDbContext)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Query.QueryContextDependencies With (Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext currentDbContext);
member this.With : Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext -> Microsoft.EntityFrameworkCore.Query.QueryContextDependencies
Public Function With (currentDbContext As ICurrentDbContext) As QueryContextDependencies

Parameters

currentDbContext
Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IExecutionStrategyFactory)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Query.QueryContextDependencies With (Microsoft.EntityFrameworkCore.Storage.IExecutionStrategyFactory executionStrategyFactor);
member this.With : Microsoft.EntityFrameworkCore.Storage.IExecutionStrategyFactory -> Microsoft.EntityFrameworkCore.Query.QueryContextDependencies
Public Function With (executionStrategyFactor As IExecutionStrategyFactory) As QueryContextDependencies

Parameters

executionStrategyFactor
IExecutionStrategyFactory

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to