CompiledQueryCacheKeyGeneratorDependencies.With 方法

定义

重载

With(ICurrentDbContext)

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

With(ICurrentDbContext)

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

With(IModel)

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

With(IExecutionStrategyFactory)

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

With(ICurrentDbContext)

Source:
CompiledQueryCacheKeyGeneratorDependencies.cs
Source:
CompiledQueryCacheKeyGeneratorDependencies.cs
Source:
CompiledQueryCacheKeyGeneratorDependencies.cs

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

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)

Source:
CompiledQueryCacheKeyGeneratorDependencies.cs
Source:
CompiledQueryCacheKeyGeneratorDependencies.cs

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

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)

Source:
CompiledQueryCacheKeyGeneratorDependencies.cs
Source:
CompiledQueryCacheKeyGeneratorDependencies.cs
Source:
CompiledQueryCacheKeyGeneratorDependencies.cs
Source:
CompiledQueryCacheKeyGeneratorDependencies.cs
Source:
CompiledQueryCacheKeyGeneratorDependencies.cs

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

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)

Source:
CompiledQueryCacheKeyGeneratorDependencies.cs
Source:
CompiledQueryCacheKeyGeneratorDependencies.cs

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

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

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

返回

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

适用于