Share via


CompiledQueryCacheKeyGenerator.CompiledQueryCacheKey Constructor

Definition

Initializes a new instance of the CompiledQueryCacheKeyGenerator.CompiledQueryCacheKey class.

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)

Parameters

query
Expression

The query to generate the key for.

model
IModel

The model that queries is written against.

queryTrackingBehavior
QueryTrackingBehavior

The tracking behavior for results of the query.

async
Boolean

A value indicating whether the query will be executed asynchronously.

Applies to