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
ExpressionThe query to generate the key for.
model
IModelThe model that queries is written against.
queryTrackingBehavior
QueryTrackingBehaviorThe tracking behavior for results of the query.
async
boolA value indicating whether the query will be executed asynchronously.
Methods
Equals(CompiledQueryCacheKey)
public bool Equals(CompiledQueryCacheKeyGenerator.CompiledQueryCacheKey other)
Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()