共用方式為


CompiledQueryCacheKeyGeneratorDependencies.With 方法

定義

多載

With(ICurrentDbContext)

複製此相依性參數物件,並取代一個服務。

With(ICurrentDbContext)

複製此相依性參數物件,並取代一個服務。

With(IModel)

複製此相依性參數物件,並取代一個服務。

With(IExecutionStrategyFactory)

複製此相依性參數物件,並取代一個服務。

With(ICurrentDbContext)

複製此相依性參數物件,並取代一個服務。

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

參數

currentContext
ICurrentDbContext

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

傳回

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

適用於

With(ICurrentDbContext)

複製此相依性參數物件,並取代一個服務。

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

參數

currentContext
Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext

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

傳回

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

適用於

With(IModel)

複製此相依性參數物件,並取代一個服務。

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

參數

model
IModel

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

傳回

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

適用於

With(IExecutionStrategyFactory)

複製此相依性參數物件,並取代一個服務。

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

參數

executionStrategyFactory
IExecutionStrategyFactory

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

傳回

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

適用於