共用方式為


CompiledQueryCacheKeyGenerator.GenerateCacheKeyCore 方法

定義

產生指定查詢的快取索引鍵。

protected Microsoft.EntityFrameworkCore.Query.CompiledQueryCacheKeyGenerator.CompiledQueryCacheKey GenerateCacheKeyCore (System.Linq.Expressions.Expression query, bool async);
member this.GenerateCacheKeyCore : System.Linq.Expressions.Expression * bool -> Microsoft.EntityFrameworkCore.Query.CompiledQueryCacheKeyGenerator.CompiledQueryCacheKey
Protected Function GenerateCacheKeyCore (query As Expression, async As Boolean) As CompiledQueryCacheKeyGenerator.CompiledQueryCacheKey

參數

query
Expression

要取得快取索引鍵的查詢。

async
Boolean

值,指出是否以非同步方式執行查詢。

傳回

快取索引鍵。

適用於