共用方式為


CompiledQueryCacheKeyGenerator.CompiledQueryCacheKey 建構函式

定義

初始化 CompiledQueryCacheKeyGenerator.CompiledQueryCacheKey 類別的新執行個體。

public CompiledQueryCacheKey (System.Linq.Expressions.Expression query, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.QueryTrackingBehavior queryTrackingBehavior, bool async);
new Microsoft.EntityFrameworkCore.Query.CompiledQueryCacheKeyGenerator.CompiledQueryCacheKey : System.Linq.Expressions.Expression * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.QueryTrackingBehavior * bool -> Microsoft.EntityFrameworkCore.Query.CompiledQueryCacheKeyGenerator.CompiledQueryCacheKey
Public Sub New (query As Expression, model As IModel, queryTrackingBehavior As QueryTrackingBehavior, async As Boolean)

參數

query
Expression

要為其產生索引鍵的查詢。

model
IModel

查詢所針對的模型。

queryTrackingBehavior
QueryTrackingBehavior

查詢結果的追蹤行為。

async
Boolean

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

適用於