CompiledQueryCacheKeyGenerator.CompiledQueryCacheKey Constructor

Definition

Initializes a new instance of the CompiledQueryCacheKeyGenerator.CompiledQueryCacheKey class.

C#
public CompiledQueryCacheKey (System.Linq.Expressions.Expression query, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.QueryTrackingBehavior queryTrackingBehavior, bool async);

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

Product Versions
Entity Framework Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0