CompiledQueryCacheKeyGenerator.GenerateCacheKey(Expression, Boolean) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
產生給定查詢的快取金鑰。
public virtual object GenerateCacheKey(System.Linq.Expressions.Expression query, bool async);
abstract member GenerateCacheKey : System.Linq.Expressions.Expression * bool -> obj
override this.GenerateCacheKey : System.Linq.Expressions.Expression * bool -> obj
Public Overridable Function GenerateCacheKey (query As Expression, async As Boolean) As Object
參數
- query
- Expression
查詢是為了取得快取金鑰。
- async
- Boolean
一個表示查詢是否會非同步執行的值。
傳回
快取索引鍵。