語言

RelationalCompiledQueryCacheKeyGenerator.GenerateCacheKey 方法

定義

產生給定查詢的快取金鑰。

public override object GenerateCacheKey(System.Linq.Expressions.Expression query, bool async);
override this.GenerateCacheKey : System.Linq.Expressions.Expression * bool -> obj
Public Overrides Function GenerateCacheKey (query As Expression, async As Boolean) As Object

參數

query
Expression

查詢是為了取得快取金鑰。

async
Boolean

一個表示查詢是否會非同步執行的值。

傳回

快取索引鍵。

適用於