RelationalCompiledQueryCacheKeyGeneratorDependencies.With 方法

定义

克隆此依赖项参数对象,并替换了一个服务。

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

参数

contextOptions
IDbContextOptions

此类型的当前依赖项的替代项。

返回

替换了给定服务的新参数对象。

适用于