CompiledQueryCacheKeyGenerator 类

定义

创建唯一标识查询的键。 这用于在缓存中存储和查找查询的编译版本。

此类型通常由数据库提供程序 (和其他扩展) 使用。 它通常不用于应用程序代码。

服务生存期为 Scoped。 这意味着每个 DbContext 实例都将使用此服务自己的实例。 实现可能依赖于使用任何生存期注册的其他服务。 实现不需要是线程安全的。

public class CompiledQueryCacheKeyGenerator : Microsoft.EntityFrameworkCore.Query.ICompiledQueryCacheKeyGenerator
type CompiledQueryCacheKeyGenerator = class
    interface ICompiledQueryCacheKeyGenerator
Public Class CompiledQueryCacheKeyGenerator
Implements ICompiledQueryCacheKeyGenerator
继承
CompiledQueryCacheKeyGenerator
派生
实现

注解

有关详细信息 ,请参阅数据库提供程序和扩展的实现EF Core 查询的工作原理

适用于