CompiledQueryCacheKeyGeneratorDependencies.With Method

Definition

Overloads

With(ICurrentDbContext)

Clones this dependency parameter object with one service replaced.

With(ICurrentDbContext)

Clones this dependency parameter object with one service replaced.

With(IModel)

Clones this dependency parameter object with one service replaced.

With(IExecutionStrategyFactory)

Clones this dependency parameter object with one service replaced.

With(ICurrentDbContext)

Clones this dependency parameter object with one service replaced.

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

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(ICurrentDbContext)

Clones this dependency parameter object with one service replaced.

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

Parameters

currentContext
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(IModel)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Query.CompiledQueryCacheKeyGeneratorDependencies With (Microsoft.EntityFrameworkCore.Metadata.IModel model);
member this.With : Microsoft.EntityFrameworkCore.Metadata.IModel -> Microsoft.EntityFrameworkCore.Query.CompiledQueryCacheKeyGeneratorDependencies
Public Function With (model As IModel) As CompiledQueryCacheKeyGeneratorDependencies

Parameters

model
IModel

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.CompiledQueryCacheKeyGeneratorDependencies With (Microsoft.EntityFrameworkCore.Storage.IExecutionStrategyFactory executionStrategyFactory);
member this.With : Microsoft.EntityFrameworkCore.Storage.IExecutionStrategyFactory -> Microsoft.EntityFrameworkCore.Query.CompiledQueryCacheKeyGeneratorDependencies
Public Function With (executionStrategyFactory As IExecutionStrategyFactory) As CompiledQueryCacheKeyGeneratorDependencies

Parameters

executionStrategyFactory
IExecutionStrategyFactory

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to