CompiledQueryCacheKeyGenerator 构造函数

定义

重载

CompiledQueryCacheKeyGenerator(CompiledQueryCacheKeyGeneratorDependencies)

初始化 CompiledQueryCacheKeyGenerator 类的新实例。

CompiledQueryCacheKeyGenerator(IModel, ICurrentDbContext)

初始化 CompiledQueryCacheKeyGenerator 类的新实例。

CompiledQueryCacheKeyGenerator(CompiledQueryCacheKeyGeneratorDependencies)

初始化 CompiledQueryCacheKeyGenerator 类的新实例。

public CompiledQueryCacheKeyGenerator (Microsoft.EntityFrameworkCore.Query.CompiledQueryCacheKeyGeneratorDependencies dependencies);
new Microsoft.EntityFrameworkCore.Query.CompiledQueryCacheKeyGenerator : Microsoft.EntityFrameworkCore.Query.CompiledQueryCacheKeyGeneratorDependencies -> Microsoft.EntityFrameworkCore.Query.CompiledQueryCacheKeyGenerator
Public Sub New (dependencies As CompiledQueryCacheKeyGeneratorDependencies)

参数

dependencies
CompiledQueryCacheKeyGeneratorDependencies

包含此服务的依赖项的参数对象。

适用于

CompiledQueryCacheKeyGenerator(IModel, ICurrentDbContext)

初始化 CompiledQueryCacheKeyGenerator 类的新实例。

public CompiledQueryCacheKeyGenerator (Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext currentContext);
new Microsoft.EntityFrameworkCore.Query.CompiledQueryCacheKeyGenerator : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext -> Microsoft.EntityFrameworkCore.Query.CompiledQueryCacheKeyGenerator
Public Sub New (model As IModel, currentContext As ICurrentDbContext)

参数

model
IModel

将对其编写查询的模型。

currentContext
Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext

将为其执行查询的上下文。

适用于