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
compiledQueryCacheKey
CompiledQueryCacheKeyThe non-relational cache key.
useRelationalNulls
boolTrue to use relational null logic.
querySplittingBehavior
QuerySplittingBehavior?QuerySplittingBehavior to use when loading related collections.
shouldBuffer
booltrue 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
obj
object
Returns
GetHashCode()
public override int GetHashCode()