Share via


RelationalCompiledQueryCacheKeyGeneratorDependencies.With Method

Definition

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Query.RelationalCompiledQueryCacheKeyGeneratorDependencies With (Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions contextOptions);
member this.With : Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions -> Microsoft.EntityFrameworkCore.Query.RelationalCompiledQueryCacheKeyGeneratorDependencies
Public Function With (contextOptions As IDbContextOptions) As RelationalCompiledQueryCacheKeyGeneratorDependencies

Parameters

contextOptions
IDbContextOptions

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to