Struct RelationalCompiledQueryCacheKeyGenerator.RelationalCompiledQueryCacheKey
- Namespace
- Microsoft.EntityFrameworkCore.Query
- Assembly
- Microsoft.EntityFrameworkCore.Relational.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 RelationalCompiledQueryCacheKeyGenerator.RelationalCompiledQueryCacheKey : IEquatable<RelationalCompiledQueryCacheKeyGenerator.RelationalCompiledQueryCacheKey>
- Implements
- Inherited Members
Constructors
RelationalCompiledQueryCacheKey(CompiledQueryCacheKey, bool, QuerySplittingBehavior?, bool)
Initializes a new instance of the RelationalCompiledQueryCacheKeyGenerator.RelationalCompiledQueryCacheKey class.
public RelationalCompiledQueryCacheKey(CompiledQueryCacheKeyGenerator.CompiledQueryCacheKey compiledQueryCacheKey, bool useRelationalNulls, QuerySplittingBehavior? querySplittingBehavior, bool shouldBuffer)
Parameters
compiledQueryCacheKeyCompiledQueryCacheKeyThe non-relational cache key.
useRelationalNullsboolTrue to use relational null logic.
querySplittingBehaviorQuerySplittingBehavior?QuerySplittingBehavior to use when loading related collections.
shouldBufferbooltrue if the query should be buffered.
Methods
Equals(RelationalCompiledQueryCacheKey)
public bool Equals(RelationalCompiledQueryCacheKeyGenerator.RelationalCompiledQueryCacheKey other)
Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()