CompiledQueryCacheKeyGeneratorDependencies.With Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Entity Framework