共用方式為


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

取代此類型的目前相依性。

傳回

已取代指定服務的新參數物件。

適用於