Table of Contents

Struct CompiledQueryCacheKeyGenerator.CompiledQueryCacheKey

Namespace
Microsoft.EntityFrameworkCore.Query
Assembly
Microsoft.EntityFrameworkCore.dll

A key that uniquely identifies a query. This is used to store and lookup compiled versions of a query in a cache.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

protected readonly struct CompiledQueryCacheKeyGenerator.CompiledQueryCacheKey : IEquatable<CompiledQueryCacheKeyGenerator.CompiledQueryCacheKey>
Implements
Inherited Members

Constructors

CompiledQueryCacheKey(Expression, IModel, QueryTrackingBehavior, bool)

Initializes a new instance of the CompiledQueryCacheKeyGenerator.CompiledQueryCacheKey class.

public CompiledQueryCacheKey(Expression query, IModel model, 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 bool

A value indicating whether the query will be executed asynchronously.

Methods

Equals(CompiledQueryCacheKey)

public bool Equals(CompiledQueryCacheKeyGenerator.CompiledQueryCacheKey other)

Parameters

other CompiledQueryCacheKeyGenerator.CompiledQueryCacheKey

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int